fix: make sure that search radius and pins are not cast to int
This commit is contained in:
parent
87777cd5a4
commit
74f54c7b31
@ -15,7 +15,7 @@
|
|||||||
<!-- start map -->
|
<!-- start map -->
|
||||||
<script>
|
<script>
|
||||||
{% if map_center %}
|
{% if map_center %}
|
||||||
var center = [parseFloat({{ map_center.longitude }}), parseFloat({{ map_center.latitude }})];
|
var center = [{{ map_center.longitude | pointdecimal }}, {{ map_center.latitude | pointdecimal }}];
|
||||||
{% else %}
|
{% else %}
|
||||||
var center = [10.49, 50.68];
|
var center = [10.49, 50.68];
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -84,8 +84,7 @@
|
|||||||
'type': 'Feature',
|
'type': 'Feature',
|
||||||
'geometry': {
|
'geometry': {
|
||||||
'type': 'Point',
|
'type': 'Point',
|
||||||
'coordinates': [parseFloat({{ map_pin.location.longitude }}),
|
'coordinates': [{{ map_pin.location.longitude | pointdecimal }}, {{ map_pin.location.latitude | pointdecimal }}]
|
||||||
parseFloat({{ map_pin.location.latitude }})]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user