Returns the topmost overlay at a given point on the webpage.
- MapKit JS 5.0+
A point in the page's coordinate system, such as
new DOMPoint(eventwhen handling a mouse event.
.page X, event .page Y)
Returns the topmost overlay or
If there are multiple overlays at a point, the overlay closest to the foreground is returned. If an overlay is selected, the selected overlay is returned. Selected overlays are drawn on top of all other overlays.
The following code example identifies the topmost overlay during a mouse move event: