1

I would like to use this fork (updated to work with latest Leaflet version) of the Leaflet Zoomify plugin to display a custom map (huge texture ~30000x70000).

I need to work on the map with geo coordinates (to set markers) and wonder what's the best way to do it, since there is no way to set offset, scale or boundaries when initialising it through the plugin.

  • Initially I thought there should be a way in Leaflet to calibrate a TileLayer just like it's possible with ImageOverlay by setting the image bounds. But that doesn't seem to be the case.
  • Is this something the plugin should to take care of? In which case I would raise an issue in the repo.
  • I also saw the conversion methods in Leaflet. I'm wondering if the best way to go is to convert the geo coordinates to pixels using those methods?

I'm also open to switch to another file format and plugin.

Any advice is highly appreciated.
Thanks a lot!

Js.
  • 423
  • 3
  • 13
  • What exactly are you trying to achieve? Use your custom map with real geocoordinates, as if it was a planet, or even Earth? Or instead use fake coordinates as if your custom map was a flat game map? Or anything else? – ghybs Mar 10 '17 at 10:25
  • I want to use the custom map with real geo coordinates. The map actually is part of the earth and covers about 40 x 80 km. I already got geo coordinates of real places on that map. – Js. Mar 11 '17 at 02:54
  • See http://stackoverflow.com/questions/33908120/specifying-lat-long-for-leaflet-tilelayer/ – ghybs Mar 11 '17 at 05:18

1 Answers1

0

After all, I went on a totally different route without Zoomify, which I think makes more sense in my case.
I used QGIS to geo-reference my custom layer and export it as GeoTIFF following this tutorial. I uploaded it to Mapbox and baked it into a map style while mixing it with additional map features from Mapbox/OSM.

Js.
  • 423
  • 3
  • 13