import React from 'react' import PropTypes from 'prop-types' import Modal from './Modal' export default class ModalDebug extends React.Component { static propTypes = { isOpen: PropTypes.bool.isRequired, renderer: PropTypes.string.isRequired, onChangeMaboxGlDebug: PropTypes.func.isRequired, onChangeOpenlayersDebug: PropTypes.func.isRequired, onOpenToggle: PropTypes.func.isRequired, maplibreGlDebugOptions: PropTypes.object, openlayersDebugOptions: PropTypes.object, mapView: PropTypes.object, } render() { const {mapView} = this.props; const osmZoom = Math.round(mapView.zoom)+1; const osmLon = Number.parseFloat(mapView.center.lng).toFixed(5); const osmLat = Number.parseFloat(mapView.center.lat).toFixed(5); return

Options

{this.props.renderer === 'mlgljs' && } {this.props.renderer === 'ol' && }

Links

Open in OSM — Opens the current view on openstreetmap.org

} }