Hi guys,
I just read the new mapview api (http://developer.anscamobile.com/reference/mapview) and I am experimenting with a build on my iPhone4
Following your docs, it’s straightforward to instantiate a map object and set a test location as the center of this map object, like this:
[lua]myMap = native.newMapView( 20, 20, 280, 300 )
myMap:setCenter( 1.42846, 103.78206, true )[/lua]
My question is whether it’s possible to create a touch event WITHIN the map object (within the rendered map area of 280X300) so that when I tap on (“touch”) a specific point in the map, I create a new marker.
For example (pseudo-code here):
[lua]function createMarker(event)
myMap:addMarker( myMap.latitude, myMap.longtitude, { title =“New Marker created!” })
end
myMap:addEventListener(“touch”, createMarker)[/lua]
Suggestions? [import]uid: 24943 topic_id: 5434 reply_id: 305434[/import]