Hi,
is this possible?
I tried this and it only zooms in when I tap:
local myMap = native.newMapView( 20, 20, 300, 220 ) myMap.anchorX = 0 myMap.anchorY = 0 local function onTap(event) myMap:addMarker( event.latitude, event.longitude, { title="Markter title", subtitle="Subtitle" } ) end local function p() myMap:addEventListener("tap", onTap) end local rect = display.newRect(250,350, 50,50) rect:addEventListener("tap", p)
It’s very time consuming to test as the map can’t be simulated in the simulator.
I added the “p” function to make sure that the map was loaded on the phone before I added the event. I tried it without the “p” function as well with the same results.
Best regards,
Tomas