mirror of
https://github.com/maputnik/editor.git
synced 2026-07-31 02:07:26 +00:00
Added option to display tile boundries (issue #202)
This commit is contained in:
@@ -172,6 +172,9 @@ export default class App extends React.Component {
|
||||
shortcuts: false,
|
||||
export: false,
|
||||
},
|
||||
mapOptions: {
|
||||
showTileBoundaries: !!queryObj.showTileBoundaries
|
||||
},
|
||||
mapFilter: queryObj["color-blindness-emulation"],
|
||||
}
|
||||
|
||||
@@ -402,6 +405,7 @@ export default class App extends React.Component {
|
||||
mapRenderer() {
|
||||
const mapProps = {
|
||||
mapStyle: style.replaceAccessToken(this.state.mapStyle, {allowFallback: true}),
|
||||
options: this.state.mapOptions,
|
||||
onDataChange: (e) => {
|
||||
this.layerWatcher.analyzeMap(e.map)
|
||||
this.fetchSources();
|
||||
|
||||
Reference in New Issue
Block a user