addOverlay(overlay)
Adds an overlay to the map.
Declaration
addOverlay(overlay: Overlay): Overlay | undefined;Parameters
- overlay:
The overlay to add.
Return Value
Returns the overlay.
Discussion
MapKit JS adds the overlay to the end of the map’s overlays array.