diff --git a/packages/maps/src/mapbox/map.ts b/packages/maps/src/mapbox/map.ts index 4e1ffa84e76..883ca33b34c 100644 --- a/packages/maps/src/mapbox/map.ts +++ b/packages/maps/src/mapbox/map.ts @@ -85,6 +85,7 @@ export default class MapboxService extends BaseMapService token, rotation = 0, mapInstance, + preserveDrawingBuffer, ...rest } = this.config; @@ -128,7 +129,7 @@ export default class MapboxService extends BaseMapService style: this.getMapStyleValue(style), attributionControl, bearing: rotation, - ...rest, + preserveDrawingBuffer: preserveDrawingBuffer ?? undefined, }); } this.map.on('load', () => {