Add Map Marker not working

I have been trying to add a map maker and no matter what I try it does not seem to add one. Here is the code I currently have, do i need to include all that markerlistener nonsense for it to work?

-- Create a native map view myMap = native.newMapView( display.contentCenterX, display.contentHeight-315, 280, 200 ) -- Display map as vector drawings of streets (other options are "satellite" and "hybrid") myMap.mapType = "standard" -- Initialize map to a real location myMap:setCenter( 37.331692, -122.030456 ) myMap:getUserLocation() myMap:addMarker( 37.332511, -122.029619)

I ran this on my iPhone 6 and got a red circular marker drawn at the Apple headquarters at 1 Infinite Loop. Is that what you expect?

Rob

Yes exactly what I wanted, but when I tried it on my Android and it didn’t work is it a platform issue? It is a Samsung Galaxy S5 running Lollipop 

I dropped the marker into a timer and it showed up on Android. Perhaps it’s taking a bit longer to initialize on Android than it does on iOS.

 timer.performWithDelay( 2000, function() myMap:addMarker( 37.332511, -122.029619) end)

make sure your build.settings file has all the ingredients

I ran this on my iPhone 6 and got a red circular marker drawn at the Apple headquarters at 1 Infinite Loop. Is that what you expect?

Rob

Yes exactly what I wanted, but when I tried it on my Android and it didn’t work is it a platform issue? It is a Samsung Galaxy S5 running Lollipop 

I dropped the marker into a timer and it showed up on Android. Perhaps it’s taking a bit longer to initialize on Android than it does on iOS.

 timer.performWithDelay( 2000, function() myMap:addMarker( 37.332511, -122.029619) end)

make sure your build.settings file has all the ingredients