mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Maps] Add zoom in/out map controls (#29862)
* Add zoom in/out map controls * Line up parens
This commit is contained in:
parent
3cd087663b
commit
f8a5e99396
1 changed files with 3 additions and 0 deletions
|
@ -28,6 +28,9 @@ export async function createMbMapInstance(node, initialView) {
|
|||
const mbMap = new mapboxgl.Map(options);
|
||||
mbMap.dragRotate.disable();
|
||||
mbMap.touchZoomRotate.disableRotation();
|
||||
mbMap.addControl(
|
||||
new mapboxgl.NavigationControl({ showCompass: false }), 'top-left'
|
||||
);
|
||||
mbMap.on('load', () => {
|
||||
resolve(mbMap);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue