mirror of
https://github.com/maputnik/editor.git
synced 2025-12-25 23:50:02 +00:00
Merge remote-tracking branch 'upstream/master' into fix/update-deps
Conflicts: src/components/Toolbar.jsx
This commit is contained in:
@@ -9,6 +9,7 @@ import style from '../../libs/style.js'
|
||||
import tokens from '../../config/tokens.json'
|
||||
import colors from 'mapbox-gl-inspect/lib/colors'
|
||||
import Color from 'color'
|
||||
import ZoomControl from '../../libs/zoomcontrol'
|
||||
import { colorHighlightedLayer } from '../../libs/highlight'
|
||||
import 'mapbox-gl/dist/mapbox-gl.css'
|
||||
import '../../mapboxgl.css'
|
||||
@@ -110,6 +111,9 @@ export default class MapboxGlMap extends React.Component {
|
||||
hash: true,
|
||||
})
|
||||
|
||||
const zoom = new ZoomControl;
|
||||
map.addControl(zoom, 'top-right');
|
||||
|
||||
const nav = new MapboxGl.NavigationControl();
|
||||
map.addControl(nav, 'top-right');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user