@foodmarketmaker/mapag 0.0.10 → 0.0.12
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;
|
|
@@ -719,11 +720,20 @@ interface VectorTileServerSource {
|
|
|
719
720
|
name: string;
|
|
720
721
|
}
|
|
721
722
|
|
|
723
|
+
type HydrologicUnit = 'HUC2' | 'HUC4' | 'HUC6' | 'HUC8' | 'HUC10' | 'HUC12';
|
|
722
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;
|
|
723
731
|
FILL_LAYER_ID: string;
|
|
724
732
|
LINE_LAYER_ID: string;
|
|
733
|
+
LABEL_LAYER_ID: string;
|
|
725
734
|
SOURCE_ID: string;
|
|
726
735
|
SOURCE_LAYER: string;
|
|
736
|
+
currentHU: HydrologicUnit;
|
|
727
737
|
settings: _angular_core.WritableSignal<WatershedSettings>;
|
|
728
738
|
current: Popup | null;
|
|
729
739
|
currentFeatureID: string | number | undefined;
|
|
@@ -742,12 +752,19 @@ declare class WatershedMapper implements MapboxMapper {
|
|
|
742
752
|
popup: Popup | null;
|
|
743
753
|
}
|
|
744
754
|
declare class WatershedSettings {
|
|
755
|
+
hydrologicUnit: HydrologicUnit;
|
|
745
756
|
visible: boolean;
|
|
746
757
|
fillColor: string;
|
|
747
758
|
fillOpacity: number;
|
|
748
759
|
borderColor: string;
|
|
749
760
|
borderWidth: number;
|
|
750
761
|
borderOpacity: number;
|
|
762
|
+
labelsVisible: boolean;
|
|
763
|
+
labelsSize: number;
|
|
764
|
+
labelsColor: string;
|
|
765
|
+
labelsHaloColor: string;
|
|
766
|
+
labelsHaloWidth: number;
|
|
767
|
+
autoSelectLayer: boolean;
|
|
751
768
|
}
|
|
752
769
|
|
|
753
770
|
declare class HttpBoundaryLoader implements Geoloader {
|
|
@@ -768,4 +785,4 @@ declare class HttpBoundaryLoader implements Geoloader {
|
|
|
768
785
|
}
|
|
769
786
|
|
|
770
787
|
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 };
|
|
771
|
-
export type { AreaSelectionType, CensusTract, CustomImage, CustomSourcesAndLayersData, DataCustomization, Geoloader, IMapboxSettings, LegendDesc, LegendItem, MapAreaSelectMode, MapAreaSelection, MapboxImage, MapboxLayerType, MapboxMapper, MapboxStyler, PointData, PointDataLoader, PointDataOptions, PopupRenderer, StyleData, VectorTileServerSource };
|
|
788
|
+
export type { AreaSelectionType, CensusTract, CustomImage, CustomSourcesAndLayersData, DataCustomization, Geoloader, HydrologicUnit, IMapboxSettings, LegendDesc, LegendItem, MapAreaSelectMode, MapAreaSelection, MapboxImage, MapboxLayerType, MapboxMapper, MapboxStyler, PointData, PointDataLoader, PointDataOptions, PopupRenderer, StyleData, VectorTileServerSource };
|