<LayerPanelActionImport />

Constructor

# <LayerPanelActionImport fileTypes handleImport handleMenuClose translations />

PropTypes:
Name Type Required Description Default
fileTypes arrayOf No Array of file types and their corresponding extensions [ { display: 'KML', extension: '.kml' }, { display: 'Compressed KML', extension: '.kmz' }, { display: 'GeoJSON', extension: '.geojson' }, { display: 'JSON', extension: '.json' }, { display: 'WKT', extension: '.wkt' }, { display: 'CSV', extension: '.csv' }, { display: 'Shapefile ZIP', extension: '.zip' } ]
handleImport func No A callback function that returns the file thats being imported () => {}
handleMenuClose func No A function that closes the `LayerPanelMenu` () => {}
translations object No An object of translation key/value pairs
Since:
  • 0.5.0

View Source LayerPanel/LayerPanelActionImport/index.js, line 12