From cb42e3930a76d5034bd32f03a18d71ee449928a1 Mon Sep 17 00:00:00 2001 From: syntaf Date: Tue, 14 Nov 2017 17:47:53 -0800 Subject: [PATCH] Add update call when showCollisionBoxes disabled --- src/ui/map.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/map.js b/src/ui/map.js index 76feb457a0b..67c03f38dbd 100755 --- a/src/ui/map.js +++ b/src/ui/map.js @@ -1579,6 +1579,9 @@ class Map extends Camera { // When we turn collision boxes on we have to generate them for existing tiles // When we turn them off, there's no cost to leaving existing boxes in place this.style._generateCollisionBoxes(); + } else { + // Otherwise, call an update to remove collision boxes + this._update(); } }