将gmplot生成的HTML转换为实际的地图

时间:2018-04-01 10:03:07

标签: python html google-maps

下午,

我正在尝试使用gmplot库来绘制我所拥有的lats / long坐标的负载。如果我只是在pypi页面上看到示例,请参阅下面的(https://pypi.python.org/pypi/gmplot/1.0.5)并运行它,我生成HTML文件,但我不知道如何将其转换为实际的地图。有什么想法吗?

gmap = gmplot.GoogleMapPlotter(37.428, -122.145, 16)

gmap.plot(latitudes, longitudes, 'cornflowerblue', edge_width=10)
gmap.scatter(more_lats, more_lngs, '#3B0B39', size=40, marker=False)
gmap.scatter(marker_lats, marker_lngs, 'k', marker=True)
gmap.heatmap(heat_lats, heat_lngs)

gmap.draw("mymap.html") 

0 个答案:

没有答案