Add missing parseFloat
This commit is contained in:
parent
196c5d7059
commit
743538fc88
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@
|
||||||
<script type='text/javascript'>
|
<script type='text/javascript'>
|
||||||
var places = <?php echo json_encode($locations); ?>;
|
var places = <?php echo json_encode($locations); ?>;
|
||||||
var map;
|
var map;
|
||||||
var map_center = {lat: places[0]['lat'], lng: places[0]['lng'] };
|
var map_center = {lat: parseFloat(places[0]['lat']), lng: parseFloat(places[0]['lng']) };
|
||||||
function initMap() {
|
function initMap() {
|
||||||
map = new google.maps.Map(document.getElementById('map-<?php echo $id ?>-multiple'), {
|
map = new google.maps.Map(document.getElementById('map-<?php echo $id ?>-multiple'), {
|
||||||
center: map_center,
|
center: map_center,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue