Openlayers: Layer of first level can not be loaded

Created on 5 Jun 2017  路  2Comments  路  Source: openlayers/openlayers

When add two layers to a map at first time, one of them can not load the first level data.It was very strange
to me! I wrote an example on jsfiddle: https://jsfiddle.net/fishScola/Ls7cgps8/

Please help me, thanks!

Most helpful comment

This is not a bug in OpenLayers. You are configuring minResolution and maxResolution on your tile layer. The maxResolution threshold is exclusive, so you need to set a slightly higher maxResolution, e.g.:

maxResolution: resolutions[0] + 1e-10

All 2 comments

This is not a bug in OpenLayers. You are configuring minResolution and maxResolution on your tile layer. The maxResolution threshold is exclusive, so you need to set a slightly higher maxResolution, e.g.:

maxResolution: resolutions[0] + 1e-10

WHY锛烜ahocevar

Was this page helpful?
0 / 5 - 0 ratings