Instance Property

selectedOverlay

The overlay on the map that is selected.

Declaration

attribute mapkit.Overlay selectedOverlay;

Discussion

To deselect any currently selected overlay, set this attribute to null.

To select an overlay that is already part of the map, set this attribute to the desired overlay.

When the selected overlay is removed from the map (as an effect of removeOverlay, removeOverlays, or setting a new set of overlays with the overlays property), it is deselected before being removed.

See Also

Adding and Removing Overlays

overlays

An array of all of the map's overlays.

overlaysAtPoint

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

addOverlay

Adds an overlay to the map.

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.