new GoOverlay(idOverlay, OlMap, overlayData, theme)
| Name | Type | Description |
|---|---|---|
idOverlay |
idOverlay |
The id for Overlay |
OlMap |
olMap |
The map of all layers OlMap |
overlayData |
module:types~overlayData |
Type from Overlay data content . |
theme |
module:types~themes |
Theme of the overlay |
Extends
- GOInteractionTool
- undefined
Methods
-
getElement(){HTMLElement|undefined}
Interactions/Views/interact/Overlay/GoOverlay.ts, line 102 -
Get the DOM element of this overlay.
Returns:
Type Description HTMLElement | undefined The Element containing the overlay. -
getId(){string}
Interactions/Views/interact/Overlay/GoOverlay.ts, line 151 -
Get Id from the Overlay
Returns:
Type Description string - Return the id of the Overlay
-
getOverlay(){Overlay}
Interactions/Views/interact/Overlay/GoOverlay.ts, line 71 -
This function return the overlay from Openlayers
Returns:
Type Description Overlay - Return the overlay from Openlayers
-
getPosition(){olCoordinate|undefined}
Interactions/Views/interact/Overlay/GoOverlay.ts, line 79 -
Get the current position of this overlay.
Returns:
Type Description olCoordinate | undefined - Return the current position of this overlay.
-
getProperties(){Object.<string, *>}
Interactions/Views/interact/Overlay/GoOverlay.ts, line 95 -
Get an object of all property names and values.
Returns:
Type Description Object.<string, *> } -
getRevision(){number}
Interactions/Views/interact/Overlay/GoOverlay.ts, line 116 -
Get the version number for this object. Each time the object is modified, its version number will be incremented
Returns:
Type Description number - Return the version number for this object.
-
onOverlay(typeOnOverlay, Callback)
Interactions/Views/interact/Overlay/GoOverlay.ts, line 125 -
Listen for a certain type of event.
Name Type Description typeOnOverlaymodule:constants~typeOnOverlay The event type or array of event types.
Callbackfunction The listener function.
-
setElement(element)
Interactions/Views/interact/Overlay/GoOverlay.ts, line 109 -
Set the DOM element to be associated with this overlay.
Name Type Description elementHTMLElement | undefined The Element containing the overlay.
-
setPosition(coordinates)
Interactions/Views/interact/Overlay/GoOverlay.ts, line 87 -
Set the position for this overlay. If the position is undefined the overlay is hidden.
Name Type Description coordinatesolCoordinate | undefined olCoordinate The spatial point that the overlay is anchored at.
-
inherited typeLayerHidraulic(feature){string}
Interactions/utils/GoInteractionTool.ts, line 20 -
This function allow to create a style for the hidraulic layer.
Name Type Description featuremodule:types~FeatureLike The feature to style
Returns:
Type Description string Return the new style of the feature. -
unOverlay(idOverlay, typeOnOverlay)
Interactions/Views/interact/Overlay/GoOverlay.ts, line 136 -
Remove Listener for a certain type of event.
Name Type Description idOverlaystring The name of Overlay
typeOnOverlaymodule:constants~typeOnOverlay The event type or array of event types.
