Skip to content

Commit

Permalink
fix(geojsonSource): add missing input (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardRode authored and Guillaume de Jabrun committed Feb 14, 2018
1 parent f649bf3 commit a38d06e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/lib/source/geojson/geojson-source.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export class GeoJSONSourceComponent implements OnInit, OnDestroy, OnChanges, Geo

/* Dynamic inputs */
@Input() data?: GeoJSON.Feature<GeoJSONGeometry> | GeoJSON.FeatureCollection<GeoJSONGeometry> | string;
@Input() minzoom?: number;
@Input() maxzoom?: number;
@Input() buffer?: number;
@Input() tolerance?: number;
Expand Down Expand Up @@ -45,6 +46,7 @@ export class GeoJSONSourceComponent implements OnInit, OnDestroy, OnChanges, Geo
type: 'geojson',
data: this.data,
maxzoom: this.maxzoom,
minzoom: this.minzoom,
buffer: this.buffer,
tolerance: this.tolerance,
cluster: this.cluster,
Expand All @@ -67,6 +69,7 @@ export class GeoJSONSourceComponent implements OnInit, OnDestroy, OnChanges, Geo
}
if (
changes.maxzoom && !changes.maxzoom.isFirstChange() ||
changes.minzoom && !changes.minzoom.isFirstChange() ||
changes.buffer && !changes.buffer.isFirstChange() ||
changes.tolerance && !changes.tolerance.isFirstChange() ||
changes.cluster && !changes.cluster.isFirstChange() ||
Expand Down

0 comments on commit a38d06e

Please sign in to comment.