bokeh.models.map_plots¶
Models for displaying maps in Bokeh plots.
-
class
GMapOptions
(**kwargs)[source]¶ 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
GMapPlot
(*args, **kw)[source]¶ 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/lon coordinates e.g.
(37.123, -122.404)
. It will be automatically converted into the web mercator projection to display properly over google maps tiles.Please also note that only
Range1d
ranges are supported byGMapPlot
.-
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
MapOptions
(**kwargs)[source]¶ 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
MapPlot
(*args, **kw)[source]¶ 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.