Skip to content

Commit 5d7a03b

Browse files
author
Vincent van der Wal
committed
add globe control
1 parent fb642e7 commit 5d7a03b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ if (mapContainer) {
189189
})
190190
);
191191

192+
map.addControl(new maplibregl.GlobeControl());
193+
192194
// improved scrolling
193195
map.scrollZoom.setZoomRate(1 / 90);
194196
map.scrollZoom.setWheelZoomRate(1 / 90);

0 commit comments

Comments
 (0)