kajic / leaflet-locationfilter

Leaflet location filter
MIT License
56 stars 38 forks source link

Is it possible to to generate an image from the cropped area? #20

Open RaduDragomir opened 9 years ago

heyman commented 9 years ago

Since the images are loaded from an external source, it shouldn't be possible to do it purely on the client side, due to browser security restrictions. However you should be able to achieve it using something like MapBox Static Maps API (https://www.mapbox.com/developers/api/static/) or Google Static Maps (https://developers.google.com/maps/documentation/staticmaps/intro).

RaduDragomir commented 9 years ago

The issue with static image is that it's limited to 1280x1280. I was looking on using Leaflet Image but giving the cropped area instead of canvas to generate the image. https://www.mapbox.com/mapbox.js/example/v1.0.0/leaflet-image/ Any idea if that is possible?