-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgmap_plot.html
41 lines (35 loc) · 14.3 KB
/
gmap_plot.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bokeh Plot</title>
<link rel="stylesheet" href="https://cdn.pydata.org/bokeh/release/bokeh-0.12.0.min.css" type="text/css" />
<script type="text/javascript" src="https://cdn.pydata.org/bokeh/release/bokeh-0.12.0.min.js"></script>
<script type="text/javascript">
Bokeh.set_log_level("info");
</script>
<style>
html {
width: 100%;
height: 100%;
}
body {
width: 90%;
height: 100%;
margin: auto;
}
</style>
</head>
<body>
<div class="bk-root">
<div class="plotdiv" id="f0bf912b-a8bf-4eed-9d9f-9134dda5a597"></div>
</div>
<script type="text/javascript">
Bokeh.$(function() {
var docs_json = {"c7706b25-da2e-49f7-8c37-a7ef541a6b04":{"roots":{"references":[{"attributes":{"map_options":{"lat":48.77,"lng":9.18,"zoom":4},"plot_height":500,"plot_width":1000,"renderers":[{"id":"2e192089-641b-4677-a346-5db43173b4c0","type":"GlyphRenderer"}],"sizing_mode":"scale_width","title":{"id":"612f0fc1-0a5b-4918-a5f3-0e05ec62227f","type":"Title"},"tool_events":{"id":"53e1a3e9-6d37-4d04-aa50-4f2265c3531a","type":"ToolEvents"},"toolbar":{"id":"7fdede5a-82bd-47fe-9343-7e5bd38fc6e7","type":"Toolbar"},"webgl":true,"x_range":{"id":"37bd1bdc-c4b7-4197-9709-4d1b8f2533da","type":"Range1d"},"y_range":{"id":"269514d7-1590-4bd8-8ea0-71c01c94a85d","type":"Range1d"}},"id":"765175ee-7815-47a2-a33c-98550e366b90","type":"GMapPlot"},{"attributes":{"callback":null,"column_names":["lat","lon"],"data":{"lat":[30.29,30.2,30.29],"lon":[-97.7,-97.74,-97.78]}},"id":"0ec8419c-941f-4040-945b-d8d21d2c10cf","type":"ColumnDataSource"},{"attributes":{},"id":"d78cf381-f5e0-4283-8753-225fb8872844","type":"ToolEvents"},{"attributes":{"data_source":{"id":"99576512-25bb-450a-a096-bc030bc26610","type":"ColumnDataSource"},"glyph":{"id":"9e90ae18-0799-4832-bdc2-822389dcea11","type":"Circle"},"hover_glyph":null,"nonselection_glyph":null,"selection_glyph":null},"id":"ec040904-3d56-4277-b06a-8c3eab36e9c3","type":"GlyphRenderer"},{"attributes":{"plot":{"id":"7de426ca-5eb0-4a9e-a7fc-328698d39126","type":"GMapPlot"}},"id":"04126627-88b6-4cc1-af5c-adc4b83a5db3","type":"PanTool"},{"attributes":{"callback":null,"end":80,"start":-80},"id":"269514d7-1590-4bd8-8ea0-71c01c94a85d","type":"Range1d"},{"attributes":{"active_drag":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"1999f720-da7a-452a-94dd-18cd375bd58c","type":"PanTool"},{"id":"89573078-a400-4b79-a6a2-02ff0c12faec","type":"WheelZoomTool"},{"id":"3d1979a6-6724-4ffc-b504-b68854799f3a","type":"BoxSelectTool"}]},"id":"670d72ab-4cc2-4dd8-84a4-11effa72e6b7","type":"Toolbar"},{"attributes":{},"id":"d2f1a8d9-06b7-4134-bd82-003fb9c7fa7a","type":"ToolEvents"},{"attributes":{"fill_alpha":{"value":0.3},"fill_color":{"value":"firebrick"},"line_color":{"value":null},"size":{"units":"screen","value":5},"x":{"field":"lng"},"y":{"field":"lat"}},"id":"4dcac2e8-e23d-4788-8179-0d3fb5571916","type":"Circle"},{"attributes":{"data_source":{"id":"af6131a6-fe88-40b0-9c16-8220fa6eee93","type":"ColumnDataSource"},"glyph":{"id":"bfa8254d-ec11-43cf-9505-a013e77986e0","type":"Circle"},"hover_glyph":null,"nonselection_glyph":null,"selection_glyph":null},"id":"c640e17d-6aa7-407d-8997-74c64b414f46","type":"GlyphRenderer"},{"attributes":{"data_source":{"id":"0ec8419c-941f-4040-945b-d8d21d2c10cf","type":"ColumnDataSource"},"glyph":{"id":"a5703baa-b0b5-4019-9985-1f3bda622000","type":"Circle"},"hover_glyph":null,"nonselection_glyph":null,"selection_glyph":null},"id":"50e33849-3368-4615-b02c-636c7878290e","type":"GlyphRenderer"},{"attributes":{"plot":{"id":"6138a657-b207-499b-8b68-c965a4e3f5c6","type":"GMapPlot"}},"id":"1999f720-da7a-452a-94dd-18cd375bd58c","type":"PanTool"},{"attributes":{"plot":null,"text":""},"id":"ce8a9c39-eba9-4629-ad53-eaa56fbca988","type":"Title"},{"attributes":{"fill_alpha":{"value":0.3},"fill_color":{"value":"firebrick"},"line_color":{"value":null},"size":{"units":"screen","value":5},"x":{"field":"lng"},"y":{"field":"lat"}},"id":"0af12347-a4c6-4e20-892a-c929f403199d","type":"Circle"},{"attributes":{"active_drag":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"dfcd60cf-5745-4a8a-81e2-6b0a0175c0ee","type":"WheelZoomTool"},{"id":"88681ff8-147e-485e-b03f-80f543c3d478","type":"PanTool"}]},"id":"c9c235bc-b27c-4e68-8322-d02f557acccb","type":"Toolbar"},{"attributes":{"callback":null},"id":"43994282-ad76-4164-a2a8-a8ffa3a87e8f","type":"ColumnDataSource"},{"attributes":{},"id":"ae90327b-c71f-4de3-90df-ee8ed7563e55","type":"ToolEvents"},{"attributes":{"callback":null,"end":160,"start":-160},"id":"454b1116-272a-49c4-992e-0dbd282dc1e6","type":"Range1d"},{"attributes":{"active_drag":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"5df7bd79-4347-4240-8f87-a03fde9e88bf","type":"WheelZoomTool"},{"id":"1d25a366-c9b7-42d0-b3bf-436b093c26e1","type":"PanTool"}]},"id":"7fdede5a-82bd-47fe-9343-7e5bd38fc6e7","type":"Toolbar"},{"attributes":{"plot":null,"text":"Austin"},"id":"40fcab3d-5a11-4080-862c-bf803dc133e5","type":"Title"},{"attributes":{"plot":{"id":"6138a657-b207-499b-8b68-c965a4e3f5c6","type":"GMapPlot"}},"id":"89573078-a400-4b79-a6a2-02ff0c12faec","type":"WheelZoomTool"},{"attributes":{"plot":null,"text":""},"id":"612f0fc1-0a5b-4918-a5f3-0e05ec62227f","type":"Title"},{"attributes":{"callback":null,"end":160,"start":-160},"id":"37bd1bdc-c4b7-4197-9709-4d1b8f2533da","type":"Range1d"},{"attributes":{"data_source":{"id":"8bbefeec-4ce3-467c-98a3-96312eb803ee","type":"ColumnDataSource"},"glyph":{"id":"0af12347-a4c6-4e20-892a-c929f403199d","type":"Circle"},"hover_glyph":null,"nonselection_glyph":null,"selection_glyph":null},"id":"2e192089-641b-4677-a346-5db43173b4c0","type":"GlyphRenderer"},{"attributes":{"active_drag":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"3330aa06-9936-49bc-aaa2-fa7123b138b3","type":"PanTool"},{"id":"d0adc9dd-6abc-4793-a5fe-7eabe3b924cf","type":"WheelZoomTool"},{"id":"bfa15c12-91e4-4104-8fae-6bd1ed013a09","type":"BoxSelectTool"}]},"id":"94376c54-dc45-4fd0-b2e6-e036afae5cd1","type":"Toolbar"},{"attributes":{"bottom_units":"screen","fill_alpha":{"value":0.5},"fill_color":{"value":"lightgrey"},"left_units":"screen","level":"overlay","line_alpha":{"value":1.0},"line_color":{"value":"black"},"line_dash":[4,4],"line_width":{"value":2},"plot":null,"render_mode":"css","right_units":"screen","top_units":"screen"},"id":"04fadf1b-8744-4626-8d6f-c32eb69658e7","type":"BoxAnnotation"},{"attributes":{"bottom_units":"screen","fill_alpha":{"value":0.5},"fill_color":{"value":"lightgrey"},"left_units":"screen","level":"overlay","line_alpha":{"value":1.0},"line_color":{"value":"black"},"line_dash":[4,4],"line_width":{"value":2},"plot":null,"render_mode":"css","right_units":"screen","top_units":"screen"},"id":"9a69b0fd-9af5-41a1-84a8-d24b0e385c90","type":"BoxAnnotation"},{"attributes":{"fill_alpha":{"value":0.3},"fill_color":{"value":"firebrick"},"line_color":{"value":null},"size":{"units":"screen","value":5},"x":{"field":"lng"},"y":{"field":"lat"}},"id":"9e90ae18-0799-4832-bdc2-822389dcea11","type":"Circle"},{"attributes":{"callback":null},"id":"99576512-25bb-450a-a096-bc030bc26610","type":"ColumnDataSource"},{"attributes":{"plot":{"id":"eeb0b54a-e312-4bf0-a509-b9931edfc810","type":"GMapPlot"}},"id":"dfcd60cf-5745-4a8a-81e2-6b0a0175c0ee","type":"WheelZoomTool"},{"attributes":{"callback":null,"end":80,"start":-80},"id":"bdeb3ceb-65ae-4239-b0c1-5a6dbf40a53a","type":"Range1d"},{"attributes":{},"id":"469fbc32-05f1-4db1-a060-ab32fa1d0396","type":"ToolEvents"},{"attributes":{"fill_alpha":{"value":0.8},"fill_color":{"value":"blue"},"line_color":{"value":null},"size":{"units":"screen","value":15},"x":{"field":"lon"},"y":{"field":"lat"}},"id":"bfa8254d-ec11-43cf-9505-a013e77986e0","type":"Circle"},{"attributes":{"plot":null,"text":"Austin"},"id":"1ce4817c-7953-45b0-aaac-428e3cb3c7e7","type":"Title"},{"attributes":{"fill_alpha":{"value":0.8},"fill_color":{"value":"blue"},"line_color":{"value":null},"size":{"units":"screen","value":15},"x":{"field":"lon"},"y":{"field":"lat"}},"id":"a5703baa-b0b5-4019-9985-1f3bda622000","type":"Circle"},{"attributes":{"callback":null,"column_names":["lat","lon"],"data":{"lat":[30.29,30.2,30.29],"lon":[-97.7,-97.74,-97.78]}},"id":"af6131a6-fe88-40b0-9c16-8220fa6eee93","type":"ColumnDataSource"},{"attributes":{"map_options":{"lat":30.29,"lng":-97.73,"map_type":"roadmap","zoom":11},"renderers":[{"id":"50e33849-3368-4615-b02c-636c7878290e","type":"GlyphRenderer"},{"id":"04fadf1b-8744-4626-8d6f-c32eb69658e7","type":"BoxAnnotation"}],"title":{"id":"1ce4817c-7953-45b0-aaac-428e3cb3c7e7","type":"Title"},"tool_events":{"id":"ae90327b-c71f-4de3-90df-ee8ed7563e55","type":"ToolEvents"},"toolbar":{"id":"94376c54-dc45-4fd0-b2e6-e036afae5cd1","type":"Toolbar"},"x_range":{"id":"7c6fd2cb-bb2e-4b12-b65d-c0a6e05ef9d8","type":"DataRange1d"},"y_range":{"id":"38e5be85-a234-4b5e-a2bb-ae9975591682","type":"DataRange1d"}},"id":"9c1bf88a-b00b-4b72-9b9b-b813f3f0aa77","type":"GMapPlot"},{"attributes":{"map_options":{"lat":48.77,"lng":9.18,"zoom":4},"plot_height":500,"plot_width":1000,"renderers":[{"id":"bb01e08c-cd3a-492e-81a7-dfc325e1bee9","type":"GlyphRenderer"}],"title":{"id":"34dd8d0d-ac2c-4ebd-b4c5-2f5dae194b34","type":"Title"},"tool_events":{"id":"d78cf381-f5e0-4283-8753-225fb8872844","type":"ToolEvents"},"toolbar":{"id":"3cbdc2ee-7662-49dd-b0e9-495772aa5831","type":"Toolbar"},"webgl":true,"x_range":{"id":"c4ed2736-0178-4d22-9f86-5c492c433aed","type":"Range1d"},"y_range":{"id":"868b8ce7-1ebf-4d78-9728-b29d8a2cc5cc","type":"Range1d"}},"id":"7de426ca-5eb0-4a9e-a7fc-328698d39126","type":"GMapPlot"},{"attributes":{"callback":null,"end":160,"start":-160},"id":"c4ed2736-0178-4d22-9f86-5c492c433aed","type":"Range1d"},{"attributes":{"callback":null},"id":"0b91a8d2-ff77-4d5a-bea2-b7dcc9192afd","type":"DataRange1d"},{"attributes":{"plot":{"id":"eeb0b54a-e312-4bf0-a509-b9931edfc810","type":"GMapPlot"}},"id":"88681ff8-147e-485e-b03f-80f543c3d478","type":"PanTool"},{"attributes":{"map_options":{"lat":48.77,"lng":9.18,"zoom":4},"plot_height":500,"plot_width":1000,"renderers":[{"id":"ec040904-3d56-4277-b06a-8c3eab36e9c3","type":"GlyphRenderer"}],"title":{"id":"ce8a9c39-eba9-4629-ad53-eaa56fbca988","type":"Title"},"tool_events":{"id":"d2f1a8d9-06b7-4134-bd82-003fb9c7fa7a","type":"ToolEvents"},"toolbar":{"id":"c9c235bc-b27c-4e68-8322-d02f557acccb","type":"Toolbar"},"webgl":true,"x_range":{"id":"454b1116-272a-49c4-992e-0dbd282dc1e6","type":"Range1d"},"y_range":{"id":"bdeb3ceb-65ae-4239-b0c1-5a6dbf40a53a","type":"Range1d"}},"id":"eeb0b54a-e312-4bf0-a509-b9931edfc810","type":"GMapPlot"},{"attributes":{"plot":{"id":"7de426ca-5eb0-4a9e-a7fc-328698d39126","type":"GMapPlot"}},"id":"bcf3bca9-0c64-4391-84cb-dc649f7743b7","type":"WheelZoomTool"},{"attributes":{"plot":{"id":"765175ee-7815-47a2-a33c-98550e366b90","type":"GMapPlot"}},"id":"1d25a366-c9b7-42d0-b3bf-436b093c26e1","type":"PanTool"},{"attributes":{"callback":null},"id":"7c6fd2cb-bb2e-4b12-b65d-c0a6e05ef9d8","type":"DataRange1d"},{"attributes":{"callback":null,"overlay":{"id":"04fadf1b-8744-4626-8d6f-c32eb69658e7","type":"BoxAnnotation"},"plot":{"id":"9c1bf88a-b00b-4b72-9b9b-b813f3f0aa77","type":"GMapPlot"}},"id":"bfa15c12-91e4-4104-8fae-6bd1ed013a09","type":"BoxSelectTool"},{"attributes":{"plot":{"id":"9c1bf88a-b00b-4b72-9b9b-b813f3f0aa77","type":"GMapPlot"}},"id":"d0adc9dd-6abc-4793-a5fe-7eabe3b924cf","type":"WheelZoomTool"},{"attributes":{"active_drag":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"bcf3bca9-0c64-4391-84cb-dc649f7743b7","type":"WheelZoomTool"},{"id":"04126627-88b6-4cc1-af5c-adc4b83a5db3","type":"PanTool"}]},"id":"3cbdc2ee-7662-49dd-b0e9-495772aa5831","type":"Toolbar"},{"attributes":{"callback":null,"overlay":{"id":"9a69b0fd-9af5-41a1-84a8-d24b0e385c90","type":"BoxAnnotation"},"plot":{"id":"6138a657-b207-499b-8b68-c965a4e3f5c6","type":"GMapPlot"}},"id":"3d1979a6-6724-4ffc-b504-b68854799f3a","type":"BoxSelectTool"},{"attributes":{"plot":null,"text":""},"id":"34dd8d0d-ac2c-4ebd-b4c5-2f5dae194b34","type":"Title"},{"attributes":{"callback":null,"end":80,"start":-80},"id":"868b8ce7-1ebf-4d78-9728-b29d8a2cc5cc","type":"Range1d"},{"attributes":{"callback":null},"id":"8bbefeec-4ce3-467c-98a3-96312eb803ee","type":"ColumnDataSource"},{"attributes":{"callback":null},"id":"38e5be85-a234-4b5e-a2bb-ae9975591682","type":"DataRange1d"},{"attributes":{"plot":{"id":"765175ee-7815-47a2-a33c-98550e366b90","type":"GMapPlot"}},"id":"5df7bd79-4347-4240-8f87-a03fde9e88bf","type":"WheelZoomTool"},{"attributes":{"map_options":{"lat":30.29,"lng":-97.73,"map_type":"roadmap","zoom":11},"renderers":[{"id":"c640e17d-6aa7-407d-8997-74c64b414f46","type":"GlyphRenderer"},{"id":"9a69b0fd-9af5-41a1-84a8-d24b0e385c90","type":"BoxAnnotation"}],"title":{"id":"40fcab3d-5a11-4080-862c-bf803dc133e5","type":"Title"},"tool_events":{"id":"469fbc32-05f1-4db1-a060-ab32fa1d0396","type":"ToolEvents"},"toolbar":{"id":"670d72ab-4cc2-4dd8-84a4-11effa72e6b7","type":"Toolbar"},"x_range":{"id":"42b53fe2-bfb8-4201-85f2-51660acbb8f4","type":"DataRange1d"},"y_range":{"id":"0b91a8d2-ff77-4d5a-bea2-b7dcc9192afd","type":"DataRange1d"}},"id":"6138a657-b207-499b-8b68-c965a4e3f5c6","type":"GMapPlot"},{"attributes":{"plot":{"id":"9c1bf88a-b00b-4b72-9b9b-b813f3f0aa77","type":"GMapPlot"}},"id":"3330aa06-9936-49bc-aaa2-fa7123b138b3","type":"PanTool"},{"attributes":{},"id":"53e1a3e9-6d37-4d04-aa50-4f2265c3531a","type":"ToolEvents"},{"attributes":{"callback":null},"id":"42b53fe2-bfb8-4201-85f2-51660acbb8f4","type":"DataRange1d"},{"attributes":{"data_source":{"id":"43994282-ad76-4164-a2a8-a8ffa3a87e8f","type":"ColumnDataSource"},"glyph":{"id":"4dcac2e8-e23d-4788-8179-0d3fb5571916","type":"Circle"},"hover_glyph":null,"nonselection_glyph":null,"selection_glyph":null},"id":"bb01e08c-cd3a-492e-81a7-dfc325e1bee9","type":"GlyphRenderer"}],"root_ids":["765175ee-7815-47a2-a33c-98550e366b90","7de426ca-5eb0-4a9e-a7fc-328698d39126","eeb0b54a-e312-4bf0-a509-b9931edfc810","9c1bf88a-b00b-4b72-9b9b-b813f3f0aa77","6138a657-b207-499b-8b68-c965a4e3f5c6"]},"title":"Bokeh Application","version":"0.12.0"}};
var render_items = [{"docid":"c7706b25-da2e-49f7-8c37-a7ef541a6b04","elementid":"f0bf912b-a8bf-4eed-9d9f-9134dda5a597","modelid":"6138a657-b207-499b-8b68-c965a4e3f5c6"}];
Bokeh.embed.embed_items(docs_json, render_items);
});
</script>
</body>
</html>