new cercalia.Popup(options)
Name | Type | Description |
---|---|---|
options |
cercaliax.PopupOptions |
Methods
-
destroy()
-
Destroy popup and clean the marker reference to this popup
-
getClass(){string}
-
Returns:
ClassName. Value :cercalia.Popup
.
-
getContent(){string}
-
-
getMarker(){cercalia.Marker}
-
Returns:
marker Obtain the marker related to this Popup, null if there's none assigned
-
getOffset(){Array.<number>}
-
Returns:
Popup Offset
-
getOverlay(){ol.Overlay}
-
Returns:
The popup object ol.Overlay
-
getPosition(){number}
-
Returns:
Popup Position
-
getZIndex(){number|String}
-
Returns:
ZIndex value
-
hide(fade)
-
Hide the popup
Name Type Description fade
boolean Indicates whether to apply the 'fadeOut' animation effect
-
isOpen(){boolean}
-
Returns:
visible Returns if it's visible
-
setContent(htmlContent)
-
Change the popup body using Cambia a string with the HTML content
Name Type Description htmlContent
string | Object Body popup HTML content (string, jQuery Object or DOM element).
-
setMarker(marker)
-
Name Type Description marker
cercalia.Marker Marker.
-
setOffset(offset)
-
Sets the popup position
Name Type Description offset
Array.<number> Couple of values for the offset.
-
setPosition(lonLat, projectionCode)
-
Sets the popup position
Name Type Description lonLat
cercalia.LonLat projectionCode
string -
setTitle(htmlContent)
-
Change the popup title using a string with the HTML content
Name Type Description htmlContent
string Popup title HTML content
-
setZIndex(zIndex)
-
Change the popup zIndex
Name Type Description zIndex
number | String ZIndex value (numerical value or 'auto')
-
show(fade)
-
Open the popup
Name Type Description fade
boolean Indicates whether to apply 'fadeIn' animation effect