aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/switcher/switcher.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-04-16 15:49:19 -0700
committerAnton Tananaev <anton@traccar.org>2022-04-16 15:49:19 -0700
commitb0f9aca5d820aae2094f72c56c59a1bee40f2edd (patch)
tree94705e9c226676690034cdaedaef7249c6133272 /modern/src/map/switcher/switcher.js
parent852cac23dcdfd6462c5bc83676291fa40e1f098e (diff)
downloadtrackermap-web-b0f9aca5d820aae2094f72c56c59a1bee40f2edd.tar.gz
trackermap-web-b0f9aca5d820aae2094f72c56c59a1bee40f2edd.tar.bz2
trackermap-web-b0f9aca5d820aae2094f72c56c59a1bee40f2edd.zip
Fix issue with vector maps (fix #910)
Diffstat (limited to 'modern/src/map/switcher/switcher.js')
-rw-r--r--modern/src/map/switcher/switcher.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/modern/src/map/switcher/switcher.js b/modern/src/map/switcher/switcher.js
index 5fa62dcb..2c89faea 100644
--- a/modern/src/map/switcher/switcher.js
+++ b/modern/src/map/switcher/switcher.js
@@ -48,7 +48,9 @@ export class SwitcherControl {
onSelectStyle(target) {
this.onBeforeSwitch();
- this.map.setStyle(JSON.parse(target.dataset.uri));
+ this.map.setStyle(JSON.parse(target.dataset.uri), {
+ diff: false,
+ });
this.mapStyleContainer.style.display = 'none';
this.styleButton.style.display = 'block';