@foodmarketmaker/mapag 0.0.9 → 0.0.11
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, GeoJSONFeature, MapMouseEvent, PointLike, MapTouchEvent,
|
|
3
|
+
import { Map as Map$1, SourceSpecification, LayerSpecification, StyleSpecification, 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';
|
|
@@ -48,6 +48,7 @@ declare class Styles {
|
|
|
48
48
|
onStyleChange?: (styleDate: StyleData) => void;
|
|
49
49
|
switchStyle(styleData: StyleData): Promise<void>;
|
|
50
50
|
highlightActiveStyle?(styleClass: string): void;
|
|
51
|
+
FetchStyleDefinition(styleData: StyleData): Promise<StyleSpecification>;
|
|
51
52
|
private fetchAndCacheStyle;
|
|
52
53
|
private updateBasemapTracking;
|
|
53
54
|
saveCustomSourcesAndLayers(): void;
|
|
@@ -301,7 +302,6 @@ declare class MapComponent implements AfterViewInit, OnDestroy {
|
|
|
301
302
|
constructor();
|
|
302
303
|
ngAfterViewInit(): void;
|
|
303
304
|
ngOnDestroy(): void;
|
|
304
|
-
layerExists(map: Map$1, layerId: string): void;
|
|
305
305
|
private initializeMap;
|
|
306
306
|
saveImage(): void;
|
|
307
307
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MapComponent, never>;
|
|
@@ -631,9 +631,9 @@ declare class HardinessMapper implements MapboxMapper {
|
|
|
631
631
|
over: _angular_core.WritableSignal<geojson.Feature<geojson.Geometry, geojson.GeoJsonProperties> | null>;
|
|
632
632
|
settings: _angular_core.WritableSignal<HardinessSettings>;
|
|
633
633
|
onStyleChange(map: Map$1, svc: MapService): Promise<void>;
|
|
634
|
-
constructor();
|
|
634
|
+
constructor(settings?: Partial<HardinessSettings>);
|
|
635
635
|
create(): Promise<void>;
|
|
636
|
-
update(newSettings: HardinessSettings): void;
|
|
636
|
+
update(newSettings: Partial<HardinessSettings>): void;
|
|
637
637
|
private _update;
|
|
638
638
|
onReady(map: Map$1, svc: MapService): Promise<void>;
|
|
639
639
|
reset(): void;
|
|
@@ -720,17 +720,26 @@ interface VectorTileServerSource {
|
|
|
720
720
|
name: string;
|
|
721
721
|
}
|
|
722
722
|
|
|
723
|
+
type HydrologicUnit = 'HUC2' | 'HUC4' | 'HUC6' | 'HUC8' | 'HUC10' | 'HUC12';
|
|
723
724
|
declare class WatershedMapper implements MapboxMapper {
|
|
725
|
+
static WBDHU2: string;
|
|
726
|
+
static WBDHU4: string;
|
|
727
|
+
static WBDHU6: string;
|
|
728
|
+
static WBDHU8: string;
|
|
729
|
+
static WBDHU10: string;
|
|
730
|
+
static WBDHU12: string;
|
|
724
731
|
FILL_LAYER_ID: string;
|
|
725
732
|
LINE_LAYER_ID: string;
|
|
733
|
+
LABEL_LAYER_ID: string;
|
|
726
734
|
SOURCE_ID: string;
|
|
727
735
|
SOURCE_LAYER: string;
|
|
736
|
+
currentHU: HydrologicUnit;
|
|
728
737
|
settings: _angular_core.WritableSignal<WatershedSettings>;
|
|
729
738
|
current: Popup | null;
|
|
730
739
|
currentFeatureID: string | number | undefined;
|
|
731
740
|
over: _angular_core.WritableSignal<geojson.Feature<geojson.Geometry, geojson.GeoJsonProperties> | null>;
|
|
732
|
-
constructor();
|
|
733
|
-
update(settings: WatershedSettings): void;
|
|
741
|
+
constructor(settings?: Partial<WatershedSettings>);
|
|
742
|
+
update(settings: Partial<WatershedSettings>): void;
|
|
734
743
|
private _update;
|
|
735
744
|
private create;
|
|
736
745
|
onReady(map: Map$1, svc: MapService): Promise<void>;
|
|
@@ -743,12 +752,18 @@ declare class WatershedMapper implements MapboxMapper {
|
|
|
743
752
|
popup: Popup | null;
|
|
744
753
|
}
|
|
745
754
|
declare class WatershedSettings {
|
|
755
|
+
hydrologicUnit: HydrologicUnit;
|
|
746
756
|
visible: boolean;
|
|
747
757
|
fillColor: string;
|
|
748
758
|
fillOpacity: number;
|
|
749
759
|
borderColor: string;
|
|
750
760
|
borderWidth: number;
|
|
751
761
|
borderOpacity: number;
|
|
762
|
+
labelsVisible: boolean;
|
|
763
|
+
labelsSize: number;
|
|
764
|
+
labelsColor: string;
|
|
765
|
+
labelsHaloColor: string;
|
|
766
|
+
labelsHaloWidth: number;
|
|
752
767
|
}
|
|
753
768
|
|
|
754
769
|
declare class HttpBoundaryLoader implements Geoloader {
|
|
@@ -769,4 +784,4 @@ declare class HttpBoundaryLoader implements Geoloader {
|
|
|
769
784
|
}
|
|
770
785
|
|
|
771
786
|
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 };
|
|
772
|
-
export type { AreaSelectionType, CensusTract, CustomImage, CustomSourcesAndLayersData, DataCustomization, Geoloader, IMapboxSettings, LegendDesc, LegendItem, MapAreaSelectMode, MapAreaSelection, MapboxImage, MapboxLayerType, MapboxMapper, MapboxStyler, PointData, PointDataLoader, PointDataOptions, PopupRenderer, StyleData, VectorTileServerSource };
|
|
787
|
+
export type { AreaSelectionType, CensusTract, CustomImage, CustomSourcesAndLayersData, DataCustomization, Geoloader, HydrologicUnit, IMapboxSettings, LegendDesc, LegendItem, MapAreaSelectMode, MapAreaSelection, MapboxImage, MapboxLayerType, MapboxMapper, MapboxStyler, PointData, PointDataLoader, PointDataOptions, PopupRenderer, StyleData, VectorTileServerSource };
|