-
Notifications
You must be signed in to change notification settings - Fork 799
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
The maxNativeZoom option of the layer is not being set when using L.esri.basemapLayer #1210
Comments
yup. it sounds like he's trying to override the resampling i landed in #1011.
user supplied constructor options should definitely supersede any defaults set internally. |
@jgravois Could |
something else is afoot. 🦶 |
I think you are right that it has something to do with the changes introduced in PR #1011. I tested and verified that the But, for the Then there are 2 spots in these changes where https://github.com/Esri/esri-leaflet/pull/1011/files#diff-04398c1818006d730a158ca4d0ad9d3eR278 @jgravois can we return early from this running if there is a |
afaik, World Imagery is cached worldwide to zoom level this means you can probably just skip wiring up the |
Thanks for the additional insight and info, @jgravois! Here's how I was hoping to approach this so far:
(Work started in branch |
call me lazy, but i don't think its important to support either of the ☝️ use cases above.
|
@Diegodlt I'm Jumping in here to ask why do you want to set your own Internally If your intent is to allow the user to zoom in PAST the maximum zoom of the tiles you need to use @jgravois @jwasilgeo I think we can just close this unless @Diegodlt can help us with a reproduction. |
@patrickarlt I have noticed that sometimes it shows the correct tiles, but on other occasions it does not. I want to set the |
@jgravois @jwasilgeo I can sort of reproduce this with https://codepen.io/patrickarlt/pen/RwrvYPR?editors=1000 but only is I zoom in REALLY fast. It doesn't actually seem to matter if
It doesn't seem to matter what part of the world this is in. I'm not sure if we can rely on the world imageeru server to serve tiles at all zoom levels. @jgravois I'm pretty sure we can't actually resolve #1011. We have to resample different tiles in different parts of the world at different sizes which is just too difficult with Leaflet without rewriting our own tile layer from scratch. My guy says to revert #1011 and cap this at zoom 19 again. |
it makes sense that 'mash zooming' is problematic if there's no time to inspect the tilemap response and learn that there's no content in the current location. it would be nice to at least let folks opt into rendering the sweet high resolution imagery @Esri has in some locations, but i don't have any plans to work on this further myself so if y'all prefer to just revert #1011 and call it a day instead, you won't hear any complaints out of me. |
@jgravois @patrickarlt Allowing the |
@patrickarlt made a good point that folks shouldn't need to be messing with i think the nicest thing you could do would be to introduce a special constructor option (for Imagery only) called |
Now I want to backtrack a little on what I just said above. I've often found myself going back & forth on these different ideas, all of which have merit. 😄 I'm leaning towards reverting #1011 to give the Imagery basemap layer full control over its I think your enhancements in #1011 are very interesting, useful, and clever, @jgravois. What if we were to put that in the issue backlog and revisit once we understand how to deal with the missing tiles behavior described in #1210 (comment), #1210 (comment), and #1210 (comment)? I'm (clearly) open to being talked into something else if anyone has other thoughts or feelings about this, and then when we settle on our approach I am happy to work on what we agree to. Thanks y'all! |
@jwasilgeo I think I agree reverting #1011 is the best course of action until we can figure out other bugs with tile map. We need to get with the JS API team or another team internally who can actually explain the tilemap format and how to use it. |
@jwasilgeo Thanks to the Esri team for responding so quickly and looking into the issue! |
Bug
The
maxNativeZoom
option of the layer is not being set when using the methodL.esri.basemapLayer('Streets')
along with the options object. This means that some parts of the map display the "Map data not yet available" when the zoom level is greater than 19.I've tried two different ways of setting the maxZoomLevel, both unsuccessful:
Expected Behavior
The map should be auto-scaled when zooming over the set
maxNativeZoom
preventing the "Map data not yet available" tiles from being displayed. Using theL.tileLayer
Leaflet method with the appropriate Url for Imagery and setting themaxNativeZoom
option does result in the expected behavior.Screenshots
Environment Information
L.version
): 1.6.0L.esri.VERSION
): 2.3.2The text was updated successfully, but these errors were encountered: