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
Not sure if this is related to a Leaflet version change (Using RC 1.0.0) or a bug in the plugin
The following function is assuming zoom as a second parameter
getTileUrl: function (tilePoint,zoom) { // (Point, Number) -> String
But zoom is undefined and not available.
Further down the code uses "zoom=map.getZoom();" - but this cannot be relied up because the getTileUrl function is fired before the zoom end event
So when you zoom in and out it uses the old zoom level and gets the tile calculation wrong - which can throw an error from the WMTS service
Solution:
getTileUrl: function (tilePoint) { var map = this._map; var zoom = tilePoint.z; //Next zoom level
The text was updated successfully, but these errors were encountered:
pfeely
changed the title
Zoom level not being detected correctly with
Zoom level not being detected correctly
Jul 13, 2016
Not sure if this is related to a Leaflet version change (Using RC 1.0.0) or a bug in the plugin
The following function is assuming zoom as a second parameter
getTileUrl: function (tilePoint,zoom) { // (Point, Number) -> String
But zoom is undefined and not available.
Further down the code uses "zoom=map.getZoom();" - but this cannot be relied up because the getTileUrl function is fired before the zoom end event
So when you zoom in and out it uses the old zoom level and gets the tile calculation wrong - which can throw an error from the WMTS service
Solution:
getTileUrl: function (tilePoint) { var map = this._map; var zoom = tilePoint.z; //Next zoom level
The text was updated successfully, but these errors were encountered: