Class: Popup

cercalia.Popup

Let you create a window related to marker, where to paint information in HTML format.
Based on ol.Overlay class

Name Type Description
options cercaliax.PopupOptions

Methods

Destroy popup and clean the marker reference to this popup

getClass(){string}

Returns:
ClassName. Value : cercalia.Popup.

getContent(){string}

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 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')

Open the popup

Name Type Description
fade boolean

Indicates whether to apply 'fadeIn' animation effect