mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 00:55:27 +01:00
Fixed lint errors.
This commit is contained in:
parent
79fa2b3508
commit
4269e4573c
3 changed files with 4 additions and 1 deletions
|
@ -60,6 +60,7 @@ export default class MapboxGlMap extends React.Component {
|
||||||
inspectModeEnabled: PropTypes.bool.isRequired,
|
inspectModeEnabled: PropTypes.bool.isRequired,
|
||||||
highlightedLayer: PropTypes.object,
|
highlightedLayer: PropTypes.object,
|
||||||
options: PropTypes.object,
|
options: PropTypes.object,
|
||||||
|
onChange: PropTypes.func.isRequired,
|
||||||
}
|
}
|
||||||
|
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
|
|
|
@ -32,6 +32,8 @@ export default class OpenLayersMap extends React.Component {
|
||||||
style: PropTypes.object,
|
style: PropTypes.object,
|
||||||
onLayerSelect: PropTypes.func.isRequired,
|
onLayerSelect: PropTypes.func.isRequired,
|
||||||
debugToolbox: PropTypes.bool.isRequired,
|
debugToolbox: PropTypes.bool.isRequired,
|
||||||
|
replaceAccessTokens: PropTypes.func.isRequired,
|
||||||
|
onChange: PropTypes.func.isRequired,
|
||||||
}
|
}
|
||||||
|
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
|
|
|
@ -55,7 +55,7 @@ class DebugModal extends React.Component {
|
||||||
<p>
|
<p>
|
||||||
<a
|
<a
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener" or rel="noreferrer"
|
rel="noopener noreferrer"
|
||||||
href={`https://www.openstreetmap.org/#map=${Math.round(mapView.zoom)+1}/${mapView.center.lat}/${mapView.center.lng}`}
|
href={`https://www.openstreetmap.org/#map=${Math.round(mapView.zoom)+1}/${mapView.center.lat}/${mapView.center.lng}`}
|
||||||
>
|
>
|
||||||
Open in OSM
|
Open in OSM
|
||||||
|
|
Loading…
Reference in a new issue