Instance Method

addOverlay

Adds an overlay to the map.

Declaration

mapkit.Overlay addOverlay(mapkit.Overlay overlay);

Parameters

overlay

The overlay to add.

Return Value

Returns the overlay.

Discussion

The overlay is added to the end of the map's overlays array.

See Also

Adding and Removing Overlays

overlays

An array of all of the map's overlays.

selectedOverlay

The overlay on the map that is selected.

overlaysAtPoint

Returns an array of overlays at a given point on the webpage.

addOverlays

Adds multiple overlays to the map.

removeOverlay

Removes an overlay from the map.

removeOverlays

Removes multiple overlays from the map.

topOverlayAtPoint

Returns the topmost overlay at a given point on the webpage.