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

Vector layer should be always on top of raster/image layers #28

Closed
epifanio opened this issue May 26, 2016 · 4 comments
Closed

Vector layer should be always on top of raster/image layers #28

epifanio opened this issue May 26, 2016 · 4 comments

Comments

@epifanio
Copy link
Contributor

epifanio commented May 26, 2016

Adding a ``DrawControl()` to the map, and later on add a raster layer like:

io = ImageOverlay(url='http://ipython.org/_static/IPy_header.png', bounds=m.bounds)
m.add_layer(io)

When digitizing a new feature, the vector is drawn correctly, but behind the ImageOverlay.

@epifanio epifanio changed the title Vector layer should always been on top Vector layer should be always on top of raster/image layers May 26, 2016
@epifanio
Copy link
Contributor Author

step to reproduce the behaviour: https://gist.github.com/epifanio/6f9facdd177d39be85d912f092515b3c

@epifanio
Copy link
Contributor Author

epifanio commented Aug 4, 2016

Any pointer on which part of the src code I should look into? I was looking at jupyter-leaflet.js#L296 trying to understand if it is possible to "reorder" the sequence of active layers, but I can't find a way to do that. I saw a method path-bringtofront which may be useful ..

@ellisonbg
Copy link
Member

Hmm, not sure how that could be accomplished and don't have time to dig into it right now :(

@SylvainCorlay
Copy link
Member

Closing. Layers now always respect the order of the layers python tuple, and it cannot be altered by toggling the visible attribute anymore.

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

No branches or pull requests

3 participants