commenthol / leaflet-rastercoords

Leaflet plugin for plain image map projection to display large images using tiles generated with gdal2tiles-leaflet
https://commenthol.github.io/leaflet-rastercoords
MIT License
120 stars 23 forks source link

Y bounds incorrect on image #3

Closed NHPatterson closed 6 years ago

NHPatterson commented 6 years ago

Hello, I'm attempting to use this plugin to build an image server for some custom data I tiled from using gdal2tiles.py from other repo. To date, I have linked my tiles (on my local disk) using the the example file without altering anything except the image size to match the tiles. image

When I turn on tms: true, I get the following, but the bounds are incorrect image

Here is what I am getting. I am not sure why it is giving me this.. Any help would be appreciated.

NHPatterson commented 6 years ago

Oops, seems I made a mistake, I used the gdal2tiles.py from the GDAL install and not the leaflet modified version from your other repo (https://github.com/commenthol/gdal2tiles-leaflet). Works great now!