Popup source

Description

OpenLayers 3 Popup Overlay. See the examples for usage. Styling can be done via CSS.

Parameters

NameTypeDescription
opt_options Object

Overlay options

Members

NameTypeDescription
closer
container
content
options
that


Methods

enableTouchScroll_

Apply workaround to enable scrolling of overflowing content within an element. Adapted from https://gist.github.com/chrismbarr/4107472

isTouchDevice_

Determine if the current browser supports touch events. Adapted from https://gist.github.com/chrismbarr/4107472

hide

Hide the popup.

isOpened

Indicates if the popup is in open state

show (coord, html)

Show the popup.

Parameters

NameTypeDescription
coord ol.Coordinate

Where to anchor the popup.

html String|HTMLElement

String or element of HTML to display within the popup.