Private
Public Access
1
0

removed google map chart

This commit is contained in:
Sander Roosendaal
2019-01-08 17:05:39 +01:00
parent 563a968db8
commit 7cad7adf69
2 changed files with 0 additions and 39 deletions

View File

@@ -1272,45 +1272,6 @@ def leaflet_chart2(lat,lon,name=""):
return script,div
def googlemap_chart(lat,lon,name=""):
if lat.empty or lon.empty:
return [0,"invalid coordinate data"]
# plot tools
TOOLS = 'save,pan,box_zoom,wheel_zoom,reset,tap,resize'
map_options = GMapOptions(lat = lat.mean(),lng=lon.mean(),
map_type="roadmap",zoom=13)
plot = GMapPlot(
x_range=DataRange1d(), y_range=DataRange1d(),
map_options=map_options,
api_key = "AIzaSyAgu1w9QSthaGPMLp8y9JedPoMc9sfEgJ8",
plot_width=400,plot_height=400,
toolbar_sticky=False,
)
source = ColumnDataSource(
data = dict(
lat=lat,
lon=lon,
)
)
circle = Circle(x="lon",y="lat",size=5,fill_color="blue",
fill_alpha=0.2,line_color=None)
plot.add_glyph(source,circle)
plot.add_tools(PanTool(), WheelZoomTool(),
SaveTool(), ResizeTool(), ResetTool(),
TapTool(),CrosshairTool(),
)
plot.title.text = name
plot.title.text_font="1.0em"
script, div = components(plot)
return [script,div]
def interactive_agegroupcpchart(age,normalized=False):
durations = [1,4,30,60]

Binary file not shown.