bokeh.models.map_plots¶
Models for displaying maps in Bokeh plots.
-
class
bokeh.models.map_plots.
GMapOptions
(**kwargs)¶ Bases:
bokeh.models.map_plots.MapOptions
Options for GMapPlot objects.
-
scale_control
¶ property type:
Bool
Whether the Google map should display its distance scale control.
-
styles
¶ property type:
JSON
A JSON array of map styles to use for the GMapPlot. Many example styles can be found here.
-
-
class
bokeh.models.map_plots.
GMapPlot
(**kwargs)¶ Bases:
bokeh.models.map_plots.MapPlot
A Bokeh Plot with a Google Map displayed underneath.
Data placed on this plot should be specified in decimal lat long coordinates e.g. 37.123, -122.404. It will be automatically converted into the web mercator projection to display properly over google maps tiles.
-
api_key
¶ property type:
String
Google Maps API requires an API key. See https://developers.google.com/maps/documentation/javascript/get-api-key for more information on how to obtain your own.
-
map_options
¶ property type:
Instance
(GMapOptions
)Options for displaying the plot.
-
-
class
bokeh.models.map_plots.
MapOptions
(**kwargs)¶ Bases:
bokeh.model.Model
Abstract base class for map options’ models.
Note
This is an abstract base class used to help organize the hierarchy of Bokeh model types. It is not useful to instantiate on its own.
-
class
bokeh.models.map_plots.
MapPlot
(**kwargs)¶ Bases:
bokeh.models.plots.Plot
Abstract base class for map plot models.
Note
This is an abstract base class used to help organize the hierarchy of Bokeh model types. It is not useful to instantiate on its own.