new cercalia.Popup(options)
Name | Type | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Popup Options.
|
Extends
Methods
-
destroy()
src/cercalia/popup.js, line 249 -
Destroy popup and clean the marker reference to this popup
-
Returns:
Get Class name of object
-
Returns:
Unique Id.
-
getOffset(){}
src/cercalia/popup.js, line 181 -
Returns:
Popup Offset
-
Returns:
The popup object ol.Overlay
-
getPosition(){Array.<number>|null|undefined}
src/cercalia/popup.js, line 163 -
Returns:
Popup Position
-
getZIndex(){number|string}
src/cercalia/popup.js, line 241 -
Returns:
ZIndex value
-
hide(opt_fade)
src/cercalia/popup.js, line 219 -
Hide the popup
Name Type Description fade
boolean Indicates whether to apply the 'fadeOut' animation effect
-
isVisible(){boolean}
src/cercalia/popup.js, line 190 -
Returns:
visible Returns if it's visible
-
setContent(content)
src/cercalia/popup.js, line 272 -
Change the popup body. You can put HTML as string.
Name Type Description content
string Body popup HTML content.
-
setOffset(offset)
src/cercalia/popup.js, line 172 -
Sets the popup position
Name Type Description offset
Couple of values ​​for the offset.
-
setPosition(lonLat, opt_projectionCode)
src/cercalia/popup.js, line 153 -
Sets the popup position
Name Type Description lonLat
cercalia.LonLat Position
projectionCode
string Optional projection code. Default
EPSG:3857
. -
setTitle(title)
src/cercalia/popup.js, line 258 -
Change the popup title using a string with the HTML content
Name Type Description title
string | null Title. If
null
title will be removed. -
setZIndex(zIndex)
src/cercalia/popup.js, line 232 -
Change the popup zIndex
Name Type Description zIndex
number | string ZIndex value (numerical value or 'auto')