Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createLayer doesn't follow vizjson layers visible setting #541

Closed
jsanz opened this issue Jun 23, 2015 · 3 comments
Closed

createLayer doesn't follow vizjson layers visible setting #541

jsanz opened this issue Jun 23, 2015 · 3 comments
Assignees
Labels

Comments

@jsanz
Copy link
Contributor

jsanz commented Jun 23, 2015

Adding a visualization using createLayer doesn't follow the settings from the editor about layers visibility so all layers are shown. I've tried this both on GMaps and Leaflet so I'm not sure if this is something intentional or a bug (??)

@MuellerMatthew
Copy link

I have noticed something similar when working with cartoDB and leaflet, and I think it might be the same bug. I just updated to the newest version of CartoDB.js from v3.11.36 because my hovering tooltips stopped working on an older version when I rebuilt a map with new data. The newest version of cartoDB.js now brings in the basemap with the visualization instead of just the visualization layer and it is covering up the other map layers.

@alonsogarciapablo
Copy link
Contributor

@MuellerMatthew that looks like a different thing. Could you please open a new issue and attach/include some code to reproduce what you are describing! Thanks!

@alonsogarciapablo
Copy link
Contributor

When we create a visualization using cartodb.createVis, we're doing this. cartodb.createLayer is not doing something equivalent. So then, when we get the visible layers, all layers are considered to be visible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants