question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Resolutions smaller than 0

See original GitHub issue

Hey 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:closed
  • Created 7 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
l4cicommented, Sep 10, 2016

Thanks guys, adding an undefined and using maxZoom: customcrs.options.resolutions.length - 1 fixed my problem!

0reactions
semonecommented, Sep 8, 2016

Okey so it is just an imagelayer?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found