Skip to content

Commit

Permalink
feat(GeoJSONSource): add generateId option #215
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulflander authored Mar 2, 2020
1 parent f562fb2 commit 16ec1b4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export class GeoJSONSourceComponent implements OnInit, OnDestroy, OnChanges, Geo
@Input() maxzoom?: number;
@Input() buffer?: number;
@Input() tolerance?: number;
@Input() generateId?: boolean;
@Input() cluster?: boolean;
@Input() clusterRadius?: number;
@Input() clusterMaxZoom?: number;
Expand Down Expand Up @@ -68,6 +69,7 @@ export class GeoJSONSourceComponent implements OnInit, OnDestroy, OnChanges, Geo
(changes.minzoom && !changes.minzoom.isFirstChange()) ||
(changes.buffer && !changes.buffer.isFirstChange()) ||
(changes.tolerance && !changes.tolerance.isFirstChange()) ||
(changes.generateId && !changes.generateId.isFirstChange()) ||
(changes.cluster && !changes.cluster.isFirstChange()) ||
(changes.clusterRadius && !changes.clusterRadius.isFirstChange()) ||
(changes.clusterMaxZoom && !changes.clusterMaxZoom.isFirstChange()) ||
Expand Down Expand Up @@ -176,6 +178,7 @@ export class GeoJSONSourceComponent implements OnInit, OnDestroy, OnChanges, Geo
minzoom: this.minzoom,
buffer: this.buffer,
tolerance: this.tolerance,
generateId: this.generateId,
cluster: this.cluster,
clusterRadius: this.clusterRadius,
clusterMaxZoom: this.clusterMaxZoom,
Expand Down

0 comments on commit 16ec1b4

Please sign in to comment.