Open mho22 opened 6 years ago
You need to make it clear which versions of leaflet-image and leaflet you are using.
As far as I know, _adjustTilePoint is not a function in leaflet >= 1.0.0. And 0.0.4 of leaflet-image is getting pretty old. Have you tried with the latest versions of both?
Version 0.0.4 is mentioned in the readme as an example of CDN access:
<script src='//api.tiles.mapbox.com/mapbox.js/plugins/leaflet-image/v0.0.4/leaflet-image.js'></script>
Is a more recent version ready to use somewhere, or does one have to bundle its own?
I googled for it and found https://www.jsdelivr.com/package/npm/leaflet-image
@Itemshopp I'm getting the same error. Did you resolve the issue?
@AamirRizwan - did you read the post above? Which versions of leaflet-image and leaflet you are using? If you're using leaflet >= 1.0.0, _adjustTilePoint is no longer a function. Try with the latest versions of both.
@tombrennan06 sorry for late response. I'm using 0.4.0. Could not find a newer version. Jsdeliver has the same version i.e. 0.4.0.
@AamirRizwan
The code is different at jsdeliever - it includes a test for layer._adjustTilePoint before its called.
I got it to work - though it is quite slow.
Using the version at https://unpkg.com/leaflet-image@latest/leaflet-image.js solved the issue for me.
Hi,
I followed the steps below and when I click on the button I added to make a snapchot, it returns that error. Is the code still functional ?
I'm using this :
`
'