Private
Public Access
1
0

wind map switched to leaflet

This commit is contained in:
Sander Roosendaal
2017-08-11 17:23:13 +02:00
parent af7b51ed9c
commit 0809788cf1
2 changed files with 6 additions and 6 deletions

View File

@@ -88,7 +88,6 @@
{{ interactiveplot |safe }}
{{ gmap |safe }}
<script>
// Set things up to resize the plot on a window resize. You can play with
@@ -119,7 +118,9 @@
<div id="interactiveplot" class="grid_6 omega">
<div class="grid_6 alpha">
{{ gmapdiv |safe }}
{{ gmap |safe }}
</div>
</div>

View File

@@ -4852,11 +4852,10 @@ def workout_wind_view(request,id=0,message="",successmessage=""):
div = res[1]
if hascoordinates:
res = googlemap_chart(rowdata.df[' latitude'],
rowdata.df[' longitude'],
row.name)
gmscript = res[0]
gmdiv = res[1]
gmscript,gmdiv = leaflet_chart(
rowdata.df[' latitude'],
rowdata.df[' longitude'],
row.name)
else:
gmscript = ""
gmdiv = "No GPS data available"