mirror of
https://github.com/maputnik/editor.git
synced 2026-12-01 06:14:20 +00:00
Added 'show-collision-boxes' query parameter
This commit is contained in:
1 parent
c5ea9494df
commit
70f1f9ffac
2 files changed
+4
-1
No files matched your search
@@ -104,6 +104,7 @@ export default class MapboxGlMap extends React.Component {
|
||||
}
|
||||
|
||||
map.showTileBoundaries = this.props.options.showTileBoundaries;
|
||||
map.showCollisionBoxes = this.props.options.showCollisionBoxes;
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
@@ -117,6 +118,7 @@ export default class MapboxGlMap extends React.Component {
|
||||
const map = new MapboxGl.Map(mapOpts);
|
||||
|
||||
map.showTileBoundaries = mapOpts.showTileBoundaries;
|
||||
map.showCollisionBoxes = mapOpts.showCollisionBoxes;
|
||||
|
||||
const zoom = new ZoomControl;
|
||||
map.addControl(zoom, 'top-right');
|
||||
|
||||
Reference in new issue
Block a user