new MultiFeaturePopup(options)
A class to display popups on a map
Parameters:
| Name | Type | Description |
|---|---|---|
options |
module:nyc/ol/FeaturePopup~FeaturePopup.Options | Constructor options |
- Source:
- See:
Extends
Members
-
margin :Array.<number>
-
Type:
- Array.<number>
- Inherited From:
- Source:
Methods
-
addLayer(layer)
-
Add a layer
Parameters:
Name Type Description layerol.layer.Vector The layer to add
- Inherited From:
- Source:
-
addLayers(layers)
-
Add a layer
Parameters:
Name Type Description layersArray.<ol.layer.Vector> The layers to add
- Inherited From:
- Source:
-
cssClass(css)
-
Add a css class to the popup content
Parameters:
Name Type Description cssstring A css class
- Inherited From:
- Source:
-
hide()
-
Hide the popup
- Inherited From:
- Source:
-
<protected> mapClick(event)
-
Parameters:
Name Type Description eventol.MapBrowserEvent - Inherited From:
- Overrides:
- Source:
-
show(options)
-
Show the popup
Parameters:
Name Type Description optionsmodule:nyc/ol/Popup~Popup.ShowOptions Overlay options
- Inherited From:
- Source:
-
showFeature(feature [, coordinate])
-
Show the popup
Parameters:
Name Type Argument Description featureol.Feature The feature
coordinateol.Coordinate <optional>
The coordinate
- Inherited From:
- Overrides:
- Source:
-
showFeatures(features)
-
Show the popup
Parameters:
Name Type Description featuresArray.<ol.Feature> The features
- Source: