Class: MultiFeaturePopup

nyc/ol/MultiFeaturePopup~ MultiFeaturePopup


new MultiFeaturePopup(options)

Create an instance of MultiFeaturePopup

Parameters:
Name Type Description
options module:nyc/ol/FeaturePopup~FeaturePopup.Options

Constructor options

Source:

Extends

Methods


addLayer(layer)

Add a layer

Parameters:
Name Type Description
layer ol.layer.Vector

The layer to add

Inherited From:
Overrides:
Source:

addLayers(layers)

Add layers

Parameters:
Name Type Description
layers Array.<ol.layer.Vector>

The layers to add

Inherited From:
Overrides:
Source:

cssClass(css)

Set a CSS class for the popup content

Parameters:
Name Type Description
css string

A css class

Inherited From:
Overrides:
Source:

goFullscreen()

Make the popup fill the map

Inherited From:
Overrides:
Source:

hide()

Hide the popup

Inherited From:
Overrides:
Source:

<protected> mapClick(event)

Handles map click events

Parameters:
Name Type Description
event ol.MapBrowserEvent

Event object

Inherited From:
Overrides:
Source:

pan()

Pan the popup so it full appears on the map

Inherited From:
Overrides:
Source:

show(options)

Show the popup

Parameters:
Name Type Description
options module:nyc/ol/Popup~Popup.ShowOptions

Overlay options

Inherited From:
Overrides:
Source:

showFeature(feature)

Show the popup

Parameters:
Name Type Description
feature ol.Feature

The feature

Inherited From:
Overrides:
Source:

showFeatures(features, coordinate)

Show the HTML rendered features in the popup

Parameters:
Name Type Description
features Array.<ol.Feature>

The features

coordinate ol.Coordinate

The coordinate

Source: