diff --git a/src/app/src/components/MapLayers.jsx b/src/app/src/components/MapLayers.jsx deleted file mode 100644 index 8f9a21f26..000000000 --- a/src/app/src/components/MapLayers.jsx +++ /dev/null @@ -1,81 +0,0 @@ -/* eslint-disable global-require */ -/* eslint-disable import/no-dynamic-require */ -import React, { PureComponent } from 'react'; -import PropTypes from 'prop-types'; -import Button from '@material-ui/core/Button'; -import DialogTitle from '@material-ui/core/DialogTitle'; -import Dialog from '@material-ui/core/Dialog'; -import DialogActions from '@material-ui/core/DialogActions'; -import DialogContent from '@material-ui/core/DialogContent'; -import Grid from '@material-ui/core/Grid'; -import Card from '@material-ui/core/Card'; -import layers from '../data/layers.json'; - -export default class MapLayers extends PureComponent { - handleClose = () => this.props.close(false); - - render() { - const { open, onClickStyle, mapStyle } = this.props; - - return ( -
- - - Choose a map style - - - - {layers.map(l => ( - - onClickStyle(l.value)} - className={ - l.value === mapStyle - ? 'highlight cursor' - : 'cursor' - } - > - {l.display} -

- {l.display} -

-
-
- ))} -
-
- - - -
-
- ); - } -} - -MapLayers.propTypes = { - open: PropTypes.bool.isRequired, - close: PropTypes.func.isRequired, - onClickStyle: PropTypes.func.isRequired, - mapStyle: PropTypes.string.isRequired, -};