OverlayThe Overlay class is used to add an HTML based overlay on the map. In order to add an overlay on the map, you should create an overlay and add it to the map by the addOverlayToScreen or addOverlayToMap methods. Summary
getOffsetPosition
Returns the overlay offset position. ReturnThe overlay offset position. setOffsetPosition
Sets an offset position to the overlay. The offest position is used to determine the overlay anchored position above the map. If you don’t set the offset position, the overlay will be placed above the map by the overlay’s top left coordinate. Parameters
|
|
|
|
DomElement getDomElement() |
|
string getHtml() |
|
ScreenPoint getOffsetPosition() |
|
The overlay position is fixed to screen (it won’t move in any map dragging).
The anchor and the offsetPosition parameters are used to determine alignment of the overlay above the map.
The offsetPosition is relative to the given anchor.
|
The ScreenPoint class represent a point on the viewport of the map by an X and Y coordinate in pixels.