Skip to main content
Formatting
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

The team at CartoDB have recently(last few days) made some useful updates that now allow public visualisation maps to reference data in private tables. The change has only been made in the last day or two to the public UI.

Is it possible to run a query on the maps visitations? I have a bit of html that uses cartodb.js to query the data based on some sliders.

I now getting an exception thrown in the console: "Uncaught Error: sql is read-only in NamedMaps" or "Uncaught Error: cartocss is read-only in NamedMaps"

Uncaught Error: sql is read-only in NamedMaps

or

Uncaught Error: cartocss is read-only in NamedMaps

The code is:

subLayerOptions = {sql: "SELECT * FROM ......(dynamic query)...",}; layer.getSubLayer(0).set(subLayerOptions);

subLayerOptions = {sql: "SELECT * FROM ......(dynamic query)...",};
layer.getSubLayer(0).set(subLayerOptions);

The code will work if I make the table public again.

The team at CartoDB have recently(last few days) made some useful updates that now allow public visualisation maps to reference data in private tables. The change has only been made in the last day or two to the public UI.

Is it possible to run a query on the maps visitations? I have a bit of html that uses cartodb.js to query the data based on some sliders.

I now getting an exception thrown in the console: "Uncaught Error: sql is read-only in NamedMaps" or "Uncaught Error: cartocss is read-only in NamedMaps"

The code is:

subLayerOptions = {sql: "SELECT * FROM ......(dynamic query)...",}; layer.getSubLayer(0).set(subLayerOptions);

The code will work if I make the table public again.

The team at CartoDB have recently(last few days) made some useful updates that now allow public visualisation maps to reference data in private tables. The change has only been made in the last day or two to the public UI.

Is it possible to run a query on the maps visitations? I have a bit of html that uses cartodb.js to query the data based on some sliders.

I now getting an exception thrown in the console:

Uncaught Error: sql is read-only in NamedMaps

or

Uncaught Error: cartocss is read-only in NamedMaps

The code is:

subLayerOptions = {sql: "SELECT * FROM ......(dynamic query)...",};
layer.getSubLayer(0).set(subLayerOptions);

The code will work if I make the table public again.

Source Link

Cartodb - SQL query of public visualization of a private table

The team at CartoDB have recently(last few days) made some useful updates that now allow public visualisation maps to reference data in private tables. The change has only been made in the last day or two to the public UI.

Is it possible to run a query on the maps visitations? I have a bit of html that uses cartodb.js to query the data based on some sliders.

I now getting an exception thrown in the console: "Uncaught Error: sql is read-only in NamedMaps" or "Uncaught Error: cartocss is read-only in NamedMaps"

The code is:

subLayerOptions = {sql: "SELECT * FROM ......(dynamic query)...",}; layer.getSubLayer(0).set(subLayerOptions);

The code will work if I make the table public again.