<LayerPanelActionDuplicate />

Constructor

# <LayerPanelActionDuplicate map layer handleMenuClose onLayerDuplicated translations />

PropTypes:
Name Type Required Description Default
map object Yes An openlayers `ol.map` object
layer object Yes An openlayers `ol.layer`
handleMenuClose func No A callback function that closes the `LayerPanelMenu` () => {}
onLayerDuplicated func No A callback function that informs when a layer has been removed and passes that layer back to the IA () => {}
translations object Yes An object of translation key/value pairs
Since:
  • 1.15.0

View Source LayerPanel/LayerPanelActionDuplicate/index.js, line 13