Open johnd0e opened 5 years ago
It is sample draft of PR, to illustrate #15. Completely untested, sorry, as I do not use this plugin. Feel free to merge/modify/close.
P.S.
To make things more elegant it'd be better to enhance _getZoomForUrl
in Leaflet itself.
It could take zoom level as argument, instead of pulling it ftom this._tileZoom
.
with layers that have:
custom getTileUrl method
options required zoom preprocessing (_getZoomForUrl)
This change is