You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have noticed on different tile providers that they support up to 30m zoom level, but we allow to zoom for more by default, which causes the tile server to provide an empty response and no tiles shows on the map.
We may want to reduce the default max zoom level on the geographic map (maybe we can make this configurable but provide a sensible default).
The text was updated successfully, but these errors were encountered:
@nemesifier Could you please assist me? I've been attempting to solve this issue, but my current implementation hasn't been effective. Could you provide a robust approach to help me resolve this problem?
@nemesifier@pandafy please review this and give some guidance on that if it does not look correct.
import ol from "openlayers";
`const maxZoomLevel = 18;
const osm = new ol.source.OSM();
const getTile = osm.getTileUrlFunction();
osm.setTileUrlFunction((coord) => coord[0] <= maxZoomLevel ? getTile(coord) : 'http://localhost/');
We have noticed on different tile providers that they support up to 30m zoom level, but we allow to zoom for more by default, which causes the tile server to provide an empty response and no tiles shows on the map.
We may want to reduce the default max zoom level on the geographic map (maybe we can make this configurable but provide a sensible default).
The text was updated successfully, but these errors were encountered: