hi katya,
what should i do if i want to load a list of location with latitude and logitude collected from a REST service:
i have a rest service wich get a json like {
"coordinate":[
{
"latitudine":"39,3006",
"longitudine":"16.2546",
"descr":"cosenza"
},
{
"latitudine":"39.32883",
"longitudine":"16.24410",
"descr":"rende"
},
i tried to save this json into a local storage variale
but if i add a button with a js like alert(localStorage.getItem('list_coordinate')); i get null
i tried to add a js to the local storage with "var aLocations = new Array();
aLocations.push(value);" but i got null.
Actually i would like to show on the map all the locations reported in the json so i would like to use the code you suggested in a loop wich get latitude and longitude from the json. How can i do it?
could you help me?