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.plots.Plot
A Bokeh Plot with a Google Map displayed underneath.
[
{
"attributes": {
"doc": null,
"geometries": [],
"id": "c9339a39-4282-4ab3-8297-4f5160a6d61b",
"name": null,
"tags": []
},
"id": "c9339a39-4282-4ab3-8297-4f5160a6d61b",
"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": "9037e4c7-7cff-4a8d-b792-94371d4ec304",
"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": [],
"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": "c9339a39-4282-4ab3-8297-4f5160a6d61b",
"type": "ToolEvents"
},
"toolbar_location": "above",
"tools": [],
"v_symmetry": false,
"x_mapper_type": "auto",
"x_range": null,
"y_mapper_type": "auto",
"y_range": null
},
"id": "9037e4c7-7cff-4a8d-b792-94371d4ec304",
"type": "GMapPlot"
}
]
GeoJSOptions
(**properties)¶Options for GeoJSPlot objects.
GeoJSPlot
(**kwargs)¶Bases: bokeh.models.plots.Plot
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": "97e32023-9d14-4489-a79e-4de4885ba31c",
"name": null,
"tags": []
},
"id": "97e32023-9d14-4489-a79e-4de4885ba31c",
"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": "ab446cab-1dc9-43c1-b6ae-32581d12a0a2",
"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": [],
"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": "97e32023-9d14-4489-a79e-4de4885ba31c",
"type": "ToolEvents"
},
"toolbar_location": "above",
"tools": [],
"v_symmetry": false,
"x_mapper_type": "auto",
"x_range": null,
"y_mapper_type": "auto",
"y_range": null
},
"id": "ab446cab-1dc9-43c1-b6ae-32581d12a0a2",
"type": "GeoJSPlot"
}
]