Constructor
# <LayerPanelActionRemove layers layer map translations shouldAllowLayerRemoval removeFeaturesForLayer handleMenuClose onLayerRemoved />
PropTypes:
Name | Type | Required | Description | Default |
---|---|---|---|---|
layers |
array | No | An array of openlayers `ol.layers` | |
layer |
object | No | An openlayers `ol.layer` object | |
map |
object | No | An openlayers `ol.map` object | |
translations |
object | No | An object of translation key/value pairs | |
shouldAllowLayerRemoval |
func | No | A callback function that returns openlayers `ol.layer` to check if the `ol.layer` can/should be removed from map | (layer) => true |
removeFeaturesForLayer |
func | No | A callback function that returns openlayers `ol.layer` for removing `ol.features` | |
handleMenuClose |
func | No | A callback function that closes the `LayerPanelMenu` | () => {} |
onLayerRemoved |
func | No | A callback function that informs when a layer has been removed and passes that layer back to the IA | () => {} |
- Since:
- 0.5.0
View Source LayerPanel/LayerPanelActionRemove/index.js, line 11