Add Backgroundlayer "none"

This commit is contained in:
Alfred Melch 2019-07-22 08:36:48 +02:00
parent 549ba95426
commit db04f293a9
2 changed files with 6 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import 'leaflet/dist/leaflet.css'
import state from '../state.js'
const tileLayers = {
nons: <></>,
osmDE: (
<TileLayer
url="https://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png"

View File

@ -30,6 +30,11 @@ export class TileLayerControl extends React.Component {
onChange={e => (state.tileLayer = e.target.value)}
// onChange={console.log}
>
<RadioButton
option="none"
selected={state.tileLayer}
fullName="None"
/>
<RadioButton
option="osmDE"
selected={state.tileLayer}