Page 2 of 2

Multible Locations from Database with Latitude and Longitude already present

Posted: Sun Jan 19, 2014 8:31 pm
by Willie Sims

Thank You, I think the issue is the fact that the Latitude and Longitude data is being stored in two different fields. but I am completely at a loss on how to parse it back to the map
I have the local storage firing with the data its just pulling it out of the object


Multible Locations from Database with Latitude and Longitude already present

Posted: Tue Jan 21, 2014 12:28 pm
by Maryna Brodina

Hello! Try this code:
prevar coordsArray = JSON.parse( localStorage.getItem('list_coordinate') ),
marker = [];
for (var i = 0; i < coordsArray&#46;length; i++) {
marker&#46;push(new google&#46;maps&#46;Marker({
position: new google&#46;maps&#46;LatLng(coordsArray&#46;Lat, coordsArray&#46;Lng),
map: Appery("map")&#46;gmap
}));
}/pre