Skip to content

Commit

Permalink
CooperativeGestures support for the Map component
Browse files Browse the repository at this point in the history
This feature was added to mapbox in version 2.6. https://github.com/mapbox/mapbox-gl-js/releases/tag/v2.6.0
  • Loading branch information
BergkampHUN authored and Wykks committed Nov 22, 2022
1 parent b021ca3 commit 1df7d51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/ngx-mapbox-gl/src/lib/map/map.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export class MapComponent
@Input() bounds?: MapboxOptions['bounds']; // Use fitBounds for dynamic input
@Input() antialias?: MapboxOptions['antialias'];
@Input() locale?: MapboxOptions['locale'];
@Input() cooperativeGestures?: MapOptions['cooperativeGestures'];

/* Dynamic inputs */
@Input() minZoom?: MapboxOptions['minZoom'];
Expand Down Expand Up @@ -357,6 +358,7 @@ export class MapComponent
fitBoundsOptions: this.fitBoundsOptions,
antialias: this.antialias,
locale: this.locale,
cooperativeGestures: this.cooperativeGestures,
projection: this.projection,
},
mapEvents: this,
Expand Down

0 comments on commit 1df7d51

Please sign in to comment.