bokeh.models.map_plots
¶Models for displaying maps in Bokeh plots.
GMapOptions
(**properties)¶Options for GMapPlot objects.
map_type
¶property type: Enum
(‘satellite’, ‘roadmap’, ‘terrain’, ‘hybrid’)
The map type to use for the GMapPlot.
styles
¶property type: JSON
A JSON array of map styles to use for the GMapPlot. Many example styles can be found here.
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.
[
{
"attributes": {
"doc": null,
"geometries": [],
"id": "c8d0f92e-856b-43d0-acc5-6f8881272fa8",
"name": null,
"tags": []
},
"id": "c8d0f92e-856b-43d0-acc5-6f8881272fa8",
"type": "ToolEvents"
},
{
"attributes": {
"above": [],
"background_fill": "white",
"below": [],
"border_fill": "white",
"disabled": false,
"doc": null,
"extra_x_ranges": {},
"extra_y_ranges": {},
"h_symmetry": true,
"id": "9d0a4a43-b4f1-4be3-bc86-c3c32fc9e0d5",
"left": [],
"lod_factor": 10,
"lod_interval": 300,
"lod_threshold": 2000,
"lod_timeout": 500,
"logo": "normal",
"map_options": null,
"min_border": 50,
"min_border_bottom": 50,
"min_border_left": 50,
"min_border_right": 50,
"min_border_top": 50,
"name": null,
"outline_line_alpha": {
"value": 1.0
},
"outline_line_cap": "butt",
"outline_line_color": {
"value": "black"
},
"outline_line_dash": [],
"outline_line_dash_offset": 0,
"outline_line_join": "miter",
"outline_line_width": {
"value": 1
},
"plot_height": 600,
"plot_width": 600,
"renderers": [],
"responsive": false,
"right": [],
"tags": [],
"title": "",
"title_text_align": "left",
"title_text_alpha": {
"value": 1.0
},
"title_text_baseline": "bottom",
"title_text_color": {
"value": "#444444"
},
"title_text_font": "Helvetica",
"title_text_font_size": {
"field": "12pt"
},
"title_text_font_style": "normal",
"tool_events": {
"id": "c8d0f92e-856b-43d0-acc5-6f8881272fa8",
"type": "ToolEvents"
},
"toolbar_location": "above",
"tools": [],
"v_symmetry": false,
"webgl": false,
"x_mapper_type": "auto",
"x_range": null,
"y_mapper_type": "auto",
"y_range": null
},
"id": "9d0a4a43-b4f1-4be3-bc86-c3c32fc9e0d5",
"type": "GMapPlot"
}
]
GeoJSOptions
(**properties)¶Options for GeoJSPlot objects.
GeoJSPlot
(**kwargs)¶Bases: bokeh.models.map_plots.MapPlot
A Bokeh Plot with a GeoJS Map displayed underneath.
Warning
GeoJSPlot support should be considered experimental, a subject to revision or removal.
[
{
"attributes": {
"doc": null,
"geometries": [],
"id": "32fc8d56-c2a6-4ca8-b2c1-4be12b313599",
"name": null,
"tags": []
},
"id": "32fc8d56-c2a6-4ca8-b2c1-4be12b313599",
"type": "ToolEvents"
},
{
"attributes": {
"above": [],
"background_fill": "white",
"below": [],
"border_fill": "white",
"disabled": false,
"doc": null,
"extra_x_ranges": {},
"extra_y_ranges": {},
"h_symmetry": true,
"id": "b19ea264-8339-4ad1-8246-c4c44842dd7d",
"left": [],
"lod_factor": 10,
"lod_interval": 300,
"lod_threshold": 2000,
"lod_timeout": 500,
"logo": "normal",
"map_options": null,
"min_border": 50,
"min_border_bottom": 50,
"min_border_left": 50,
"min_border_right": 50,
"min_border_top": 50,
"name": null,
"outline_line_alpha": {
"value": 1.0
},
"outline_line_cap": "butt",
"outline_line_color": {
"value": "black"
},
"outline_line_dash": [],
"outline_line_dash_offset": 0,
"outline_line_join": "miter",
"outline_line_width": {
"value": 1
},
"plot_height": 600,
"plot_width": 600,
"renderers": [],
"responsive": false,
"right": [],
"tags": [],
"title": "",
"title_text_align": "left",
"title_text_alpha": {
"value": 1.0
},
"title_text_baseline": "bottom",
"title_text_color": {
"value": "#444444"
},
"title_text_font": "Helvetica",
"title_text_font_size": {
"field": "12pt"
},
"title_text_font_style": "normal",
"tool_events": {
"id": "32fc8d56-c2a6-4ca8-b2c1-4be12b313599",
"type": "ToolEvents"
},
"toolbar_location": "above",
"tools": [],
"v_symmetry": false,
"webgl": false,
"x_mapper_type": "auto",
"x_range": null,
"y_mapper_type": "auto",
"y_range": null
},
"id": "b19ea264-8339-4ad1-8246-c4c44842dd7d",
"type": "GeoJSPlot"
}
]
MapOptions
(**properties)¶Abstract base class for map options’ models.
MapPlot
(**kwargs)¶Bases: bokeh.models.plots.Plot
Abstract base class for map plot models.
[
{
"attributes": {
"doc": null,
"geometries": [],
"id": "c92dd0d4-bef5-44f8-9aa4-c63b8a309770",
"name": null,
"tags": []
},
"id": "c92dd0d4-bef5-44f8-9aa4-c63b8a309770",
"type": "ToolEvents"
},
{
"attributes": {
"above": [],
"background_fill": "white",
"below": [],
"border_fill": "white",
"disabled": false,
"doc": null,
"extra_x_ranges": {},
"extra_y_ranges": {},
"h_symmetry": true,
"id": "40cf5850-131a-4d22-9960-b62da20a46b5",
"left": [],
"lod_factor": 10,
"lod_interval": 300,
"lod_threshold": 2000,
"lod_timeout": 500,
"logo": "normal",
"map_options": null,
"min_border": 50,
"min_border_bottom": 50,
"min_border_left": 50,
"min_border_right": 50,
"min_border_top": 50,
"name": null,
"outline_line_alpha": {
"value": 1.0
},
"outline_line_cap": "butt",
"outline_line_color": {
"value": "black"
},
"outline_line_dash": [],
"outline_line_dash_offset": 0,
"outline_line_join": "miter",
"outline_line_width": {
"value": 1
},
"plot_height": 600,
"plot_width": 600,
"renderers": [],
"responsive": false,
"right": [],
"tags": [],
"title": "",
"title_text_align": "left",
"title_text_alpha": {
"value": 1.0
},
"title_text_baseline": "bottom",
"title_text_color": {
"value": "#444444"
},
"title_text_font": "Helvetica",
"title_text_font_size": {
"field": "12pt"
},
"title_text_font_style": "normal",
"tool_events": {
"id": "c92dd0d4-bef5-44f8-9aa4-c63b8a309770",
"type": "ToolEvents"
},
"toolbar_location": "above",
"tools": [],
"v_symmetry": false,
"webgl": false,
"x_mapper_type": "auto",
"x_range": null,
"y_mapper_type": "auto",
"y_range": null
},
"id": "40cf5850-131a-4d22-9960-b62da20a46b5",
"type": "MapPlot"
}
]