bokeh.models.map_plots¶
Models for displaying maps in Bokeh plots.
-
class
GMapOptions(**kwargs)[source]¶ Bases:
bokeh.models.map_plots.MapOptionsOptions for GMapPlot objects.
-
scale_control¶ property type:
BoolWhether the Google map should display its distance scale control.
-
styles¶ property type:
JSONA 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.MapPlotA 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
Range1dranges are supported byGMapPlot.-
api_key¶ property type:
StringGoogle 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.ModelAbstract 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.PlotAbstract 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.