bokeh.models.map_plots
¶
Models for displaying maps in Bokeh plots.
-
class
GMapOptions
(**properties)¶ Options for GMapPlot objects.
-
map_type
¶ property type: map_type:Enum(‘satellite’, ‘roadmap’, ‘terrain’, ‘hybrid’)
The map type to use for the GMapPlot.
-
styles
¶ property type: styles:JSON
A JSON array of map styles to use for the GMapPlot. Many example styles can be found here.
-
-
class
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.
-
map_options
¶ property type: map_options:Instance(GMapOptions)
Options for displaying the plot.
-
-
class
MapOptions
(**properties)¶ Abstract base class for map options’ models.
-
lat
¶ property type: lat:Float
The latitude where the map should be centered.
-
lng
¶ property type: lng:Float
The longitude where the map should be centered.
-
zoom
¶ property type: zoom:Int
The initial zoom level to use when displaying the map.
-
-
class
MapPlot
(**kwargs)¶ Bases:
bokeh.models.plots.Plot
Abstract base class for map plot models.