Resolutions smaller than 0
See original GitHub issueHey there,
Im using custom resolutions from an ArcGIS Server (https://geoportal.stadt-kassel.de/arcgis/rest/services/Raster/RSK_WEB_G/MapServer)
var proj4rs25832def = '+proj=utm +zone=32 +ellps=GRS80 +units=m +no_defs';
var customcrs = new L.Proj.CRS('EPSG:25832', proj4rs25832def, {
resolutions: [
13.229193125052918,
5.291677250021167,
2.6458386250105836,
1.3229193125052918,
0.6614596562526459,
]
});
var map = new L.Map('map', {
crs: customcrs,
center: [51.3133835, 9.49648767981191],
zoomControl: true,
zoom: 1,
maxZoom: customcrs.options.resolutions.length,
minZoom: 1,
continuousWorld: true
});
L.esri.dynamicMapLayer({
url: 'https://geoportal.stadt-kassel.de/arcgis/rest/services/Raster/RSK_WEB_G/MapServer',
}).addTo(map);
Unfortunately the last zoom resolution 0.6614596562526459
doesn’t really work. It zooms to it, but afterwards zooms even further, which it should not do at all, because its the last step. But it seems to ignore that, and zooms one more time - which shows a bigger version (so it zooms out again). When removing the last zoom level it all works as intended, but I need this last zoom level, as its the most detailed one.
Anyone has an idea how to fix this, or can point me in the right direction? Im kinda lost…
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (3 by maintainers)
Top Results From Across the Web
List of common resolutions
This article lists computer monitor screen resolutions that are defined by standards or in common use. Most of them use certain preferred numbers....
Read more >What do the 720p, 1080p, 1440p, 2K, 4K resolutions mean ...
"Resolution" is technically the number of pixels per unit of area, rather than the total number of pixels. In this article, we are...
Read more >Fix Screen Resolution Problem in Windows 10 [2022 Tutorial]
Fix Screen Resolution Problem in Windows 10 [2022 Tutorial]If you need ... it back to the recommended size from a less - than...
Read more >Change your screen resolution in Windows
Change the size of what's on the screen · Stay in, or open, Display settings. Open your Display settings · Scroll to the...
Read more >What is Resolution? - All About Images - Research Guides
Images with lower resolutions have fewer pixels, and if those few pixels ... than it is to create new pixel information (enlarge an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks guys, adding an
undefined
and usingmaxZoom: customcrs.options.resolutions.length - 1
fixed my problem!Okey so it is just an imagelayer?