Type alias MapGeoJSONFeature

MapGeoJSONFeature: GeoJSONFeature & {
    layer: DistributiveOmit<LayerSpecification, "source"> & {
        source: string;
    };
    source: string;
    sourceLayer?: string;
    state: {
        [key: string]: any;
    };
}

An extended geojson feature used by the events to return data to the listener

Type declaration

  • layer: DistributiveOmit<LayerSpecification, "source"> & {
        source: string;
    }
  • source: string
  • Optional sourceLayer?: string
  • state: {
        [key: string]: any;
    }
    • [key: string]: any