public class FeatureGroup extends LayerGroup
Constructor and Description |
---|
FeatureGroup(ILayer[] layers) |
Modifier and Type | Method and Description |
---|---|
FeatureGroup |
addLayer(ILayer layer)
Adds a given layer to the group.
|
FeatureGroup |
addLayerListener(LayerEvent.Type type,
LayerListener listener)
Adds a layer listener to a particular layer event type of the object.
|
FeatureGroup |
addMouseListener(MouseEvent.Type type,
MouseListener listener)
Adds a mouse listener to a particular mouse event type of the object.
|
FeatureGroup |
addTo(Map map)
Adds the group of layers to the map.
|
FeatureGroup |
bindPopup(String html)
Binds a popup with a particular HTML content to a click on this group.
|
FeatureGroup |
bindPopup(String html,
PopupOptions options)
Binds a popup with a particular HTML content and the given options to the
group.
|
FeatureGroup |
bringToBack()
Brings the layer to the bottom of all path layers.
|
FeatureGroup |
bringToFront()
Brings the layer to the top of all path layers.
|
FeatureGroup |
clearAllEventListeners()
Removes all listeners to all events on the object.
|
FeatureGroup |
clearLayers()
Removes all the layers from the group.
|
LatLngBounds |
getBounds()
Returns the LatLngBounds of the layers.
|
FeatureGroup |
removeLayer(ILayer layer)
Removes a given layer from the group.
|
FeatureGroup |
removeLayer(String layerId)
Removes a given layer of the given id from the group.
|
FeatureGroup |
removeLayerListener(LayerEvent.Type type,
LayerListener listener)
Removes a layer listener to a particular layer event type of the object.
|
FeatureGroup |
removeMouseListener(MouseEvent.Type type,
MouseListener listener)
Removes a mouse listener to a particular mouse event type of the object.
|
FeatureGroup |
setStyle(PathOptions options)
Changes the appearance of a FeatureGroup based on the options in the
PathOptions object. |
getLayers, hasLayer
public FeatureGroup(ILayer[] layers)
public FeatureGroup addMouseListener(MouseEvent.Type type, MouseListener listener)
type
- The mouse event type. The types CLICK, DBLCLICK, MOUSEOVER,
MOUSEOUT and MOUSEMOVE are supported.listener
- The registered listener.public FeatureGroup addLayerListener(LayerEvent.Type type, LayerListener listener)
type
- The layer event type. The types LAYERADD and LAYERREMOVE are
supported.listener
- The registered listener.public FeatureGroup removeMouseListener(MouseEvent.Type type, MouseListener listener)
type
- The mouse event type. The types CLICK, DBLCLICK, MOUSEOVER,
MOUSEOUT and MOUSEMOVE are supported.listener
- The registered listener.public FeatureGroup removeLayerListener(LayerEvent.Type type, LayerListener listener)
type
- The layer event type. The types LAYERADD and LAYERREMOVE are
supported.listener
- The registered listener.public FeatureGroup clearAllEventListeners()
public FeatureGroup bindPopup(String html)
html
- poup HTML contentpublic FeatureGroup bindPopup(String html, PopupOptions options)
html
- poup HTML contentoptions
- popup configuration objectpublic FeatureGroup setStyle(PathOptions options)
PathOptions
object.options
- path configuration optionspublic LatLngBounds getBounds()
public FeatureGroup bringToFront()
public FeatureGroup bringToBack()
public FeatureGroup addTo(Map map)
addTo
in class LayerGroup
map
- The mappublic FeatureGroup addLayer(ILayer layer)
addLayer
in class LayerGroup
layer
- The layer to addpublic FeatureGroup removeLayer(ILayer layer)
removeLayer
in class LayerGroup
layer
- The layer to removepublic FeatureGroup removeLayer(String layerId)
removeLayer
in class LayerGroup
layerId
- The layer id of the layer to removepublic FeatureGroup clearLayers()
clearLayers
in class LayerGroup
Copyright © 2017. All rights reserved.