hello everybody
i need help with a problem with the marker for the map.
In my app I made a network request to get informations from a database like name, street, latitude and longitude and put them into an array. After the map has loaded in the way joshua descriped it i will set marker on the map. I tried to do this in this way but it doesn´t work he sets no markers:
[lua]for mark=1, w-1 do
markerlatitude = array[mark].latitude
markerlongitude = array[mark].longitude
markerTitle = array[mark].name
markerSubtitle = array[mark].street
– Add a pin to the map at the new location
myMap:addMarker( markerlatitude, markerlongitude, { title=markerTitle, subtitle=markerSubtitle } )
end[/lua]
Can anybody help it is very urgent. Thanks for any answer! [import]uid: 149464 topic_id: 31115 reply_id: 128344[/import]