wind map switched to leaflet
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user