pbugnion / gmaps

Google maps for Jupyter notebooks
https://jupyter-gmaps.readthedocs.io/en/stable/
Other
760 stars 146 forks source link

Force the figure to satellite view #222

Closed valschmidt closed 6 years ago

valschmidt commented 6 years ago

This may be a feature request, or maybe it is a documentation request if it is already possible and I have simply been unable to sort out how.

In any event, it would be useful to be able to pass an argument to "figure()" to force the map into satellite view (e.g satellite images vs cartographic maps).

In the examples some maps are shown in cartographic view and others in satellite view, with no distinction in the example code. I suspect the change has been made manually by clicking in the resulting plot. It would be useful to be able to specify this explicitly, programmatically.

pbugnion commented 6 years ago

Thanks for raising this!

This is not currently possible. PRs welcome!

For anyone wanting to implement this, I suggest adding a map_type traitlet to Map and an argument to the figure factory. The map_type traitlet would take values roadmap, satellite, hybrid or terrain and pass these through to the frontend.

See this page for the frontend documentation.

pbugnion commented 6 years ago

Closed in PR #232. This will be available in gmaps 0.7.4 (now released).