from
bokeh.plotting
import
gmap
from
bokeh.models
import
ColumnDataSource, GMapOptions
from
bokeh.io
import
output_file, show
output_file(
"gfg.html"
)
lat
=
28.7041
lng
=
77.1025
map_type
=
"hybrid"
zoom
=
11
google_map_options
=
GMapOptions(lat
=
lat,
lng
=
lng,
map_type
=
map_type,
zoom
=
zoom)
google_api_key
=
""
title
=
"Delhi"
google_map
=
gmap(google_api_key,
google_map_options,
title
=
title)
source
=
ColumnDataSource(
data
=
dict
(lat
=
[
28.6
,
28.65
,
28.7
,
28.75
,
28.8
,
28.85
],
lon
=
[
76.95
,
77
,
77.05
,
77.1
,
77.15
,
77.25
]))
x
=
"lon"
y
=
"lat"
size
=
20
fill_color
=
"red"
fill_alpha
=
1
google_map.square(x
=
x,
y
=
y,
size
=
size,
fill_color
=
fill_color,
fill_alpha
=
fill_alpha,
source
=
source)
show(google_map)