import { OnChanges, OnDestroy, OnInit, SimpleChanges, NgZone } from '@angular/core'; import { GeoJSONSourceOptions } from 'mapbox-gl'; import { Subject } from 'rxjs'; import { MapService } from '../../map/map.service'; import * as i0 from "@angular/core"; export declare class GeoJSONSourceComponent implements OnInit, OnDestroy, OnChanges, GeoJSONSourceOptions { private mapService; private zone; id: string; data?: GeoJSONSourceOptions['data']; maxzoom?: GeoJSONSourceOptions['maxzoom']; attribution?: GeoJSONSourceOptions['attribution']; buffer?: GeoJSONSourceOptions['buffer']; tolerance?: GeoJSONSourceOptions['tolerance']; cluster?: GeoJSONSourceOptions['cluster']; clusterRadius?: GeoJSONSourceOptions['clusterRadius']; clusterMaxZoom?: GeoJSONSourceOptions['clusterMaxZoom']; clusterMinPoints?: GeoJSONSourceOptions['clusterMinPoints']; clusterProperties?: GeoJSONSourceOptions['clusterProperties']; lineMetrics?: GeoJSONSourceOptions['lineMetrics']; generateId?: GeoJSONSourceOptions['generateId']; promoteId?: GeoJSONSourceOptions['promoteId']; filter?: GeoJSONSourceOptions['filter']; updateFeatureData: Subject; private sub; private sourceAdded; private featureIdCounter; constructor(mapService: MapService, zone: NgZone); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; /** * For clustered sources, fetches the zoom at which the given cluster expands. * * @param clusterId The value of the cluster's cluster_id property. */ getClusterExpansionZoom(clusterId: number): Promise; /** * For clustered sources, fetches the children of the given cluster on the next zoom level (as an array of GeoJSON features). * * @param clusterId The value of the cluster's cluster_id property. */ getClusterChildren(clusterId: number): Promise[]>; /** * For clustered sources, fetches the original points that belong to the cluster (as an array of GeoJSON features). * * @param clusterId The value of the cluster's cluster_id property. * @param limit The maximum number of features to return. * @param offset The number of features to skip (e.g. for pagination). */ getClusterLeaves(clusterId: number, limit: number, offset: number): Promise[]>; _addFeature(feature: GeoJSON.Feature): void; _removeFeature(feature: GeoJSON.Feature): void; _getNewFeatureId(): number; private init; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }