Saturday, 7 April 2018

Load a raster file directly in leaflet


Is it possible to load a raster file (e.g. geotiff or erdas img) directly into a Leaflet map? If so, can you guide me to the correct documentation or method to do this? I am trying to do this with the imageOverlay() function in Leaflet currently.


var imageUrl = 'http://localhost/test/my_raster.tif',
imageBounds = [[30.430224, -87.193133], [30.435867, -87.185944]];
L.imageOverlay(imageUrl, imageBounds).addTo(map);

I am new to Leaflet.




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...