Export an interactive Google map as a static image

I create specific heat using gmaps , which is a jupyter extension. The result of this library are interactive google maps such as here .

I want the end result to be a png image that should be accessible using google static maps, but I don’t know how to programmatically convert a map with an extra layer of a heat map into a static map.

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

thank

+4
source share
2 answers

, api, API Google JavaScript, Heatmap , API Google ( Web Mercator) PNG .

+2

, gmaps, jupyter, .

PNG gmaps:

$ pip install -U gmaps
$ jupyter nbextension enable --py --sys-prefix gmaps

:

import gmaps
gmaps.__version__ # => 0.4.2.rc3

gmaps.configure(api_key="...")

fig = gmaps.figure()
fig.add_layer(gmaps.heatmap_layer([(50.0, 5.0), (52.0, 6.0)]))
fig

enter image description here

, PNG.


API ( ), , API. 8192 .

+1

Source: https://habr.com/ru/post/1672741/


All Articles