Willie Sims
Posts: 0
Joined: Wed Jul 10, 2013 4:37 pm

Multible Locations from Database with Latitude and Longitude already present

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Multible Locations from Database with Latitude and Longitude already present

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

Return to “Issues”