@foodmarketmaker/mapag 0.0.14 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { NgZone, AfterViewInit, OnDestroy, ElementRef, OnInit } from '@angular/core';
|
|
3
|
-
import { Map as Map$1, SourceSpecification, LayerSpecification,
|
|
3
|
+
import { StyleSpecification, Map as Map$1, SourceSpecification, LayerSpecification, GeoJSONFeature, MapMouseEvent, PointLike, MapTouchEvent, MapGeoJSONFeature, Popup, SymbolLayerSpecification, FillLayerSpecification, LineLayerSpecification, CircleLayerSpecification } from 'maplibre-gl';
|
|
4
4
|
import * as _fortawesome_fontawesome_common_types from '@fortawesome/fontawesome-common-types';
|
|
5
5
|
import * as rxjs from 'rxjs';
|
|
6
6
|
import { Subject, Subscription } from 'rxjs';
|
|
@@ -18,6 +18,7 @@ interface StyleData {
|
|
|
18
18
|
nameColor?: string;
|
|
19
19
|
sources?: string[];
|
|
20
20
|
layers?: string[];
|
|
21
|
+
postFetch?: (styleJson: StyleSpecification) => void;
|
|
21
22
|
}
|
|
22
23
|
interface CustomImage {
|
|
23
24
|
data: any;
|
|
@@ -33,6 +34,7 @@ interface CustomSourcesAndLayersData {
|
|
|
33
34
|
[key: string]: CustomImage;
|
|
34
35
|
};
|
|
35
36
|
}
|
|
37
|
+
declare const DEFAULT_GLYPHS = "https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer/resources/fonts/{fontstack}/{range}.pbf";
|
|
36
38
|
declare class Styles {
|
|
37
39
|
style: _angular_core.WritableSignal<StyleData>;
|
|
38
40
|
map: Map$1 | undefined;
|
|
@@ -463,6 +465,7 @@ interface MapAreaSelection {
|
|
|
463
465
|
}
|
|
464
466
|
declare function discoverLayers(pmtilesUrl: string): Promise<string[]>;
|
|
465
467
|
declare function sampleTilesForLayers(pmtiles: PMTiles): Promise<string[]>;
|
|
468
|
+
declare function pmtilesPixelInfo(url: string, map: Map$1, e: MapMouseEvent): Promise<Uint8ClampedArray | undefined>;
|
|
466
469
|
|
|
467
470
|
declare class HighlightMapper implements MapboxMapper {
|
|
468
471
|
count: number;
|
|
@@ -609,6 +612,28 @@ interface CensusTract {
|
|
|
609
612
|
GeoID: string;
|
|
610
613
|
}
|
|
611
614
|
|
|
615
|
+
declare class EsriMapper implements MapboxMapper {
|
|
616
|
+
jsonUrl: string;
|
|
617
|
+
SOURCE_ID: string;
|
|
618
|
+
map: Map$1 | undefined;
|
|
619
|
+
legends?: LegendDesc[] | undefined;
|
|
620
|
+
count: number;
|
|
621
|
+
total: number;
|
|
622
|
+
current: string[];
|
|
623
|
+
settings: _angular_core.WritableSignal<EsriSettings>;
|
|
624
|
+
constructor(settings?: Partial<EsriSettings>);
|
|
625
|
+
makeSettings(): Promise<EsriSettings>;
|
|
626
|
+
update(settings: Partial<EsriSettings>): void;
|
|
627
|
+
_update(settings: EsriSettings): void;
|
|
628
|
+
onReady(map: Map$1, svc: MapService): void;
|
|
629
|
+
clear(): void;
|
|
630
|
+
reset(): void;
|
|
631
|
+
}
|
|
632
|
+
declare class EsriSettings {
|
|
633
|
+
options: LayerSpecification[];
|
|
634
|
+
layers: Map<string, LayerSpecification>;
|
|
635
|
+
}
|
|
636
|
+
|
|
612
637
|
declare class LayerSettings {
|
|
613
638
|
visible: boolean;
|
|
614
639
|
}
|
|
@@ -676,6 +701,53 @@ declare class HardinessSettings extends PolygonLayerSettings {
|
|
|
676
701
|
borderOpacity: number;
|
|
677
702
|
}
|
|
678
703
|
|
|
704
|
+
declare class NAASMapper implements MapboxMapper {
|
|
705
|
+
LAYER_ID: string;
|
|
706
|
+
SOURCE_ID: string;
|
|
707
|
+
settings: _angular_core.WritableSignal<NAASSettings>;
|
|
708
|
+
current: Popup | null;
|
|
709
|
+
currentFeatureID: string | number | undefined;
|
|
710
|
+
over: _angular_core.WritableSignal<geojson.Feature<geojson.Geometry, geojson.GeoJsonProperties> | null>;
|
|
711
|
+
map: Map$1 | undefined;
|
|
712
|
+
legends?: LegendDesc[] | undefined;
|
|
713
|
+
count: number;
|
|
714
|
+
total: number;
|
|
715
|
+
constructor(settings?: Partial<NAASSettings>);
|
|
716
|
+
update(settings: Partial<NAASSettings>): void;
|
|
717
|
+
private _update;
|
|
718
|
+
private create;
|
|
719
|
+
onReady(map: Map$1, svc: MapService): void;
|
|
720
|
+
reset(): void;
|
|
721
|
+
clear(): void;
|
|
722
|
+
}
|
|
723
|
+
declare class NAASSettings {
|
|
724
|
+
url: string;
|
|
725
|
+
visible: boolean;
|
|
726
|
+
fillColor: string;
|
|
727
|
+
fillOpacity: number;
|
|
728
|
+
borderColor: string;
|
|
729
|
+
borderWidth: number;
|
|
730
|
+
borderOpacity: number;
|
|
731
|
+
labelsVisible: boolean;
|
|
732
|
+
labelsSize: number;
|
|
733
|
+
labelsColor: string;
|
|
734
|
+
labelsHaloColor: string;
|
|
735
|
+
labelsHaloWidth: number;
|
|
736
|
+
labelsOpacity: number;
|
|
737
|
+
labelOverlap: boolean;
|
|
738
|
+
autoSelectLayer: boolean;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
declare class SimpleMapper implements MapboxMapper {
|
|
742
|
+
reset(): void;
|
|
743
|
+
clear(): void;
|
|
744
|
+
legends?: LegendDesc[] | undefined;
|
|
745
|
+
count: number;
|
|
746
|
+
total: number;
|
|
747
|
+
map: Map$1 | undefined;
|
|
748
|
+
onReady(map: Map$1, svc: MapService): void;
|
|
749
|
+
}
|
|
750
|
+
|
|
679
751
|
declare class StandardLayersMapper implements MapboxMapper {
|
|
680
752
|
static readonly EMPTY_SOURCE = "empty";
|
|
681
753
|
static readonly POLYGONS_BACKGROUND = "polygons-background";
|
|
@@ -786,5 +858,5 @@ declare class HttpBoundaryLoader implements Geoloader {
|
|
|
786
858
|
loadGeoJson(url: string, geofield: string): Promise<MultiPolygon | undefined>;
|
|
787
859
|
}
|
|
788
860
|
|
|
789
|
-
export { AddLayer, AddSource, AreaMapperMapper, BackgroundMaskMapper, BaseMapLight, BasemapSelect, BasemapSelectMenu, CensusTractMapper, DrawingMapper, HardinessMapper, HardinessSettings, HttpBoundaryLoader, MapAreaSelectComponent, MapComponent, MapSelectionService, MapService, MapStyles, MapboxMapperGroup, NoOpMapper, RemoveLayer, RemoveSource, SaveMap, SelectMode, StandardLayersMapper, Styles, VectorTileServerMapper, WatershedMapper, WatershedSettings, discoverLayers, isGeoloader, isMultiPolygon, isNumber2DArray, isNumber3DArray, isPolygon, mapboxLoadImages, mapboxloadImage, sampleTilesForLayers, simpleClone, toMultiPolygon, trySync };
|
|
861
|
+
export { AddLayer, AddSource, AreaMapperMapper, BackgroundMaskMapper, BaseMapLight, BasemapSelect, BasemapSelectMenu, CensusTractMapper, DEFAULT_GLYPHS, DrawingMapper, EsriMapper, EsriSettings, HardinessMapper, HardinessSettings, HttpBoundaryLoader, MapAreaSelectComponent, MapComponent, MapSelectionService, MapService, MapStyles, MapboxMapperGroup, NAASMapper, NAASSettings, NoOpMapper, RemoveLayer, RemoveSource, SaveMap, SelectMode, SimpleMapper, StandardLayersMapper, Styles, VectorTileServerMapper, WatershedMapper, WatershedSettings, discoverLayers, isGeoloader, isMultiPolygon, isNumber2DArray, isNumber3DArray, isPolygon, mapboxLoadImages, mapboxloadImage, pmtilesPixelInfo, sampleTilesForLayers, simpleClone, toMultiPolygon, trySync };
|
|
790
862
|
export type { AreaSelectionType, CensusTract, CustomImage, CustomSourcesAndLayersData, DataCustomization, Geoloader, HydrologicUnit, IMapboxSettings, LegendDesc, LegendItem, MapAreaSelectMode, MapAreaSelection, MapboxImage, MapboxLayerType, MapboxMapper, MapboxStyler, PointData, PointDataLoader, PointDataOptions, PopupRenderer, StyleData, VectorTileServerSource };
|