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 }} {{ interactiveplot |safe }}
{{ gmap |safe }}
<script> <script>
// Set things up to resize the plot on a window resize. You can play with // 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 id="interactiveplot" class="grid_6 omega">
<div class="grid_6 alpha"> <div class="grid_6 alpha">
{{ gmapdiv |safe }} {{ gmapdiv |safe }}
{{ gmap |safe }}
</div> </div>
</div> </div>

View File

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