From d1058b8f7a84d166c4f63812f12d2e52810090fa Mon Sep 17 00:00:00 2001 From: Ahmedhossamdev Date: Sun, 3 Nov 2024 03:00:45 +0200 Subject: [PATCH] refactor: disable dragRotate --- src/lib/Provider/OpenStreetMapProvider.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/Provider/OpenStreetMapProvider.js b/src/lib/Provider/OpenStreetMapProvider.js index c40d6fa..a7a9ea6 100644 --- a/src/lib/Provider/OpenStreetMapProvider.js +++ b/src/lib/Provider/OpenStreetMapProvider.js @@ -47,7 +47,8 @@ export default class OpenStreetMapProvider { */ this.maplibreLayer = this.L.maplibreGL({ style: `https://tiles.openfreemap.org/styles/${this.maplibreLayer}`, - interactive: true + interactive: true, + dragRotate: false }).addTo(this.map); } @@ -307,8 +308,7 @@ export default class OpenStreetMapProvider { } this.maplibreLayer = this.L.maplibreGL({ - style: styleUrl, - interactive: true + style: styleUrl }).addTo(this.map); }