Add parseFloat
This commit is contained in:
parent
d26917096a
commit
bd21c637f0
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,7 @@
|
||||||
});
|
});
|
||||||
for(var i = 0; i < places; i++){
|
for(var i = 0; i < places; i++){
|
||||||
var marker = new google.maps.Marker({
|
var marker = new google.maps.Marker({
|
||||||
position: {lat: places[i]['lat'], lng: places[i]['lng'] },
|
position: {lat: parseFloat(places[i]['lat']), lng: parseFloat(places[i]['lng']) },
|
||||||
map: map
|
map: map
|
||||||
});
|
});
|
||||||
marker.setVisible(true);
|
marker.setVisible(true);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue