We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We need to manage which layers are on top of other ones better, instead of defaulting to "whichever one we checked last".
The best way to do this is probably a global variable, something like the following...
var ZINDEX = Object.freeze({ 'densityBase': 1, 'densityHighlighted': 2, 'bikeLanes': 3 }); // set the layer zIndex layer.setZIndex(ZINDEX.densityBase);
The text was updated successfully, but these errors were encountered:
There's a Leaflet method to do this, I think. autoZIndex
I believe that when it's set to true, which is the default, then the layers maintain their zIndex.
true
Sorry, something went wrong.
No branches or pull requests
We need to manage which layers are on top of other ones better, instead of defaulting to "whichever one we checked last".
The best way to do this is probably a global variable, something like the following...
The text was updated successfully, but these errors were encountered: