-
Notifications
You must be signed in to change notification settings - Fork 77
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
Layers disappear on zoom #399
Comments
That is because it is filtered out by the layer menu. It is not supposed to be visible at that map bounds or zoom. It appears because we are forcing it to display on the map by default. |
Ahhhh. Ok. I see it did behave this way before our changes . |
When a user is browsing the layer will only be available in the layer's zoom and bounds. So a user might set it to appear by default only when the layer is available. It would disappear when the map moves away from its bounds or the map is zoomed out. |
I do see that with |
It gets removed from the map. Justice map is available from zoom level 5. You will have to turn it back on when it is available in the layer menu. |
If this seems unintuitive we can remove the code responsible for removing the layer from the map. The issue then would be there would be no way to turn off the layer when it is filtered off the layer menu. |
We should perhaps look into a better way for layer filtering? Maybe look into how the layer should behave with the map when it is filtered out? |
Ahhh, I see. Yeah that doesn't seem intuitive to me. So it behaves differently depending on which menu is up because the browser menu doesn't have all the layers in there? I noticed a lot are missing, such as Unearthing. |
Yes. The layer menu in LEL is different from the default one. We essentially want the users to work with LEL's layer menu. The layers are filtered out because we don't want the user requesting data out of the layer's extents and we don't want the layer menu to be too long. Here's how we could go about making the experience better.
@nstjean, @jywarren, and @sagarpreet-chadha, What do you think? |
Ohhhhhh, I see!! That is neat! I don't see the Wisconsin layer showing up at all, even when I zoom in to Wisconsin, though. We will want to check into that and make sure the visibility settings are correct.
|
Yes. I've come across that too. The data is requested only when map view is on 'Eau Claire'. Not sure why it was coded that way. Probably because the data is not available in other parts of Wisconsin? We'll need to check if that's the case. |
It seems to only show if you are zoomed in really close. We can maybe adjust that. |
Hey, |
Fixed in #409. We will no longer be removing layers that are displayed on the map. 😄 |
I noticed a bug: This map works great when
simpleMenu: true
but when the browser menu is used the layers are disappearing on zoom.Here's the code I used in
multipleMaps.html
:I also noticed that those layers aren't listed at all in the browser menu. But this might just be a result of the changes we made in #396
The text was updated successfully, but these errors were encountered: