Wednesday, April 5, 2017

Export interactive google map as a static image

Leave a Comment

I am creating certain heatmaps using gmaps which is a jupyter extension. The output of this library are interactive google maps like one here.

I want the final output to be a png image which should be obtainable via google static maps but I don't know how do I convert a map with an extra layer of heatmap to a static map programatically.

Is it possible to convert a map like this to a static image.

Thanks

1 Answers

Answers 1

If you need a heatmap, you can't solely relies on the static map api, you will either grab the tiles from using a Google Maps API for JavaScript and lay them out in your canvas or container or a backend service or use some other heatmap libraries to output the layer in the same projection that you use for Google Maps API (defaults to Web Mercator) as a PNG and overlay on top your static map image.

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment