Type Function Object Map Library native.* Return value none Revision 2017.3060 Keywords removeMarker See also object:removeAllMarkers()
object:addMarker()
Clears a specific marker (pin) from the map.
object:removeMarker( markerID )
Number. The marker's identification number, for example the value returned from the object:addMarker() function.
local myMap = native.newMapView( 0, 0, 300, 220 ) myMap.x = display.contentCenterX myMap.y = display.contentCenterY local options = { title="Displayed Title", subtitle="subtitle text" } local markerID = myMap:addMarker( 37.331692, -122.030456, options ) --At some later time/event myMap:removeMarker( markerID )