From 1fb860e2ca961004bad53061e0e7572578fd277b Mon Sep 17 00:00:00 2001 From: Xiaoji Chen Date: Thu, 13 Apr 2023 12:45:29 -0700 Subject: [PATCH] Force map reload upon reuse (#2160) --- src/mapbox/mapbox.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mapbox/mapbox.ts b/src/mapbox/mapbox.ts index b97a3679c..02b9bf5bf 100644 --- a/src/mapbox/mapbox.ts +++ b/src/mapbox/mapbox.ts @@ -506,8 +506,9 @@ export default class Mapbox { map.once('styledata', () => map.fire('load')); } - // Force redraw - map.triggerRepaint(); + // Force reload + // @ts-ignore + map._update(); return that; }