We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d7a03b commit f643158Copy full SHA for f643158
src/main.ts
@@ -168,6 +168,14 @@ if (mapContainer) {
168
169
map.touchZoomRotate.disableRotation();
170
171
+ // Add zoom and rotation controls to the map.
172
+ map.addControl(
173
+ new maplibregl.NavigationControl({
174
+ showZoom: true,
175
+ showCompass: true
176
+ })
177
+ );
178
+
179
// Add geolocate control to the map.
180
map.addControl(
181
new maplibregl.GeolocateControl({
@@ -181,14 +189,6 @@ if (mapContainer) {
189
})
182
190
);
183
191
184
- // Add zoom and rotation controls to the map.
185
- map.addControl(
186
- new maplibregl.NavigationControl({
187
- showZoom: true,
188
- showCompass: true
- })
- );
-
192
map.addControl(new maplibregl.GlobeControl());
193
194
// improved scrolling
0 commit comments