Skip to content

Commit

Permalink
refactor: disable dragRotate
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmedhossamdev committed Nov 3, 2024
1 parent 98fdcb6 commit d1058b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/Provider/OpenStreetMapProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -307,8 +308,7 @@ export default class OpenStreetMapProvider {
}

this.maplibreLayer = this.L.maplibreGL({
style: styleUrl,
interactive: true
style: styleUrl
}).addTo(this.map);
}

Expand Down

0 comments on commit d1058b8

Please sign in to comment.