@geowiki/map 0.16.9-dev.8 → 0.16.9
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/dist/{GeoWikiMap-G2JPQNTZ.mjs → GeoWikiMap-OMS4RQ6H.mjs} +1 -1
- package/dist/{chunk-3LCQXIYM.mjs → chunk-ALCD7VXT.mjs} +262 -315
- package/dist/index.d.mts +145 -48
- package/dist/index.d.ts +145 -48
- package/dist/index.js +776 -643
- package/dist/index.mjs +457 -271
- package/dist/styles.css +1 -1
- package/package.json +43 -43
package/dist/index.d.mts
CHANGED
|
@@ -245,7 +245,7 @@ interface CustomWMSTileLayerProps extends WMSOptions, LayerProps {
|
|
|
245
245
|
}
|
|
246
246
|
declare const CustomWMSTileLayer: ForwardRefExoticComponent<CustomWMSTileLayerProps & RefAttributes<BetterWMS>>;
|
|
247
247
|
|
|
248
|
-
interface MapLayerInfo {
|
|
248
|
+
interface MapLayerInfo$1 {
|
|
249
249
|
citation?: string;
|
|
250
250
|
dateOfContent?: string;
|
|
251
251
|
description?: string;
|
|
@@ -268,38 +268,38 @@ interface MapLayerInfo {
|
|
|
268
268
|
};
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
interface CustomLegendItem {
|
|
271
|
+
interface CustomLegendItem$1 {
|
|
272
272
|
label: string;
|
|
273
273
|
color: string;
|
|
274
274
|
symbol?: "circle" | "square" | "line" | "polygon" | "hexagon" | "icon";
|
|
275
275
|
iconPath?: string;
|
|
276
276
|
size?: number;
|
|
277
277
|
}
|
|
278
|
-
interface CustomLegendConfig {
|
|
278
|
+
interface CustomLegendConfig$1 {
|
|
279
279
|
title?: string;
|
|
280
|
-
items: CustomLegendItem[];
|
|
280
|
+
items: CustomLegendItem$1[];
|
|
281
281
|
position?: "top" | "bottom" | "left" | "right";
|
|
282
282
|
showTitle?: boolean;
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
interface MapLayerWithInfo {
|
|
285
|
+
interface MapLayerWithInfo$1 {
|
|
286
286
|
id: string;
|
|
287
287
|
title?: string;
|
|
288
288
|
url: string;
|
|
289
289
|
type: "WMS" | "GeoJson" | "GeoTrees" | "GoogleSheets" | "Marker" | "MarkerCluster";
|
|
290
290
|
layerName: string;
|
|
291
|
-
layerInfo?: MapLayerInfo;
|
|
291
|
+
layerInfo?: MapLayerInfo$1;
|
|
292
292
|
opacity: number;
|
|
293
293
|
color: string;
|
|
294
294
|
properties?: string;
|
|
295
295
|
showPopup?: boolean;
|
|
296
296
|
index: number;
|
|
297
297
|
order?: number;
|
|
298
|
-
legendConfig?: CustomLegendConfig;
|
|
298
|
+
legendConfig?: CustomLegendConfig$1;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
declare const GeoJsonLayer: React.FC<{
|
|
302
|
-
layer: MapLayerWithInfo;
|
|
302
|
+
layer: MapLayerWithInfo$1;
|
|
303
303
|
}>;
|
|
304
304
|
|
|
305
305
|
declare const TimeSeries: () => react_jsx_runtime.JSX.Element;
|
|
@@ -337,11 +337,11 @@ type State$2 = {
|
|
|
337
337
|
declare const useMapStore: zustand.UseBoundStore<zustand.StoreApi<State$2>>;
|
|
338
338
|
|
|
339
339
|
type State$1 = {
|
|
340
|
-
layers: MapLayerWithInfo[];
|
|
341
|
-
add: (layer: MapLayerWithInfo) => void;
|
|
342
|
-
remove: (layer: MapLayerWithInfo) => void;
|
|
340
|
+
layers: MapLayerWithInfo$1[];
|
|
341
|
+
add: (layer: MapLayerWithInfo$1) => void;
|
|
342
|
+
remove: (layer: MapLayerWithInfo$1) => void;
|
|
343
343
|
updateOpacity: (id: string, opacity: number) => void;
|
|
344
|
-
updateLayer: (id: string, updates: Partial<MapLayerWithInfo>) => void;
|
|
344
|
+
updateLayer: (id: string, updates: Partial<MapLayerWithInfo$1>) => void;
|
|
345
345
|
reorderLayers: (oldIndex: number, newIndex: number) => void;
|
|
346
346
|
refresh: () => void;
|
|
347
347
|
selectedLayer: string;
|
|
@@ -497,6 +497,9 @@ type State = {
|
|
|
497
497
|
selectedBand: number | undefined;
|
|
498
498
|
taskGeometry: any;
|
|
499
499
|
task_for_review: boolean;
|
|
500
|
+
s2_tile_url: string | null;
|
|
501
|
+
landsat_tile_url: string | null;
|
|
502
|
+
selectedBaseLayer: "Sentinel-2" | "Landsat-8" | null;
|
|
500
503
|
};
|
|
501
504
|
type Actions = {
|
|
502
505
|
setAnnotationUndoRedo: (annotationUndoRedo: AnnotationUndoRedo, annotatedRasterAsset: RasterAssetItem) => void;
|
|
@@ -562,6 +565,9 @@ type Actions = {
|
|
|
562
565
|
setAnnotatedRasterAsset: (annotated_raster: RasterAssetItem) => void;
|
|
563
566
|
setTaskGeometry: (taskGeometry: any) => void;
|
|
564
567
|
setTaskForReview: (taskForReview: boolean) => void;
|
|
568
|
+
setS2TileUrl: (url: string) => void;
|
|
569
|
+
setLandsatTileUrl: (url: string) => void;
|
|
570
|
+
setSelectedBaseLayer: (baseLayer: "Sentinel-2" | "Landsat-8" | null) => void;
|
|
565
571
|
};
|
|
566
572
|
declare const useEvolandStore: UseBoundStore<StoreApi<State & Actions>>;
|
|
567
573
|
|
|
@@ -613,39 +619,130 @@ declare const WaybackTimelineMap: (props: {
|
|
|
613
619
|
mapZoom: number;
|
|
614
620
|
}) => react_jsx_runtime.JSX.Element;
|
|
615
621
|
|
|
622
|
+
interface MapLayerInfo {
|
|
623
|
+
citation?: string;
|
|
624
|
+
dateOfContent?: string;
|
|
625
|
+
description?: string;
|
|
626
|
+
function?: string;
|
|
627
|
+
geographicCoverage?: string;
|
|
628
|
+
isVisible?: boolean;
|
|
629
|
+
license?: string;
|
|
630
|
+
source?: string;
|
|
631
|
+
name?: string;
|
|
632
|
+
resolution?: string;
|
|
633
|
+
overview?: string;
|
|
634
|
+
hoverCardText?: string;
|
|
635
|
+
sourceLink?: {
|
|
636
|
+
name?: string;
|
|
637
|
+
href?: string;
|
|
638
|
+
};
|
|
639
|
+
citationLink?: {
|
|
640
|
+
name?: string;
|
|
641
|
+
href?: string;
|
|
642
|
+
};
|
|
643
|
+
}
|
|
644
|
+
interface MapLayerWithInfo {
|
|
645
|
+
id: string;
|
|
646
|
+
title?: string;
|
|
647
|
+
url: string;
|
|
648
|
+
type: "WMS" | "GeoJson" | "GeoTrees" | "GoogleSheets" | "Marker" | "MarkerCluster";
|
|
649
|
+
layerName: string;
|
|
650
|
+
layerInfo?: MapLayerInfo;
|
|
651
|
+
opacity: number;
|
|
652
|
+
color: string;
|
|
653
|
+
properties?: string;
|
|
654
|
+
showPopup?: boolean;
|
|
655
|
+
index: number;
|
|
656
|
+
order?: number;
|
|
657
|
+
legendConfig?: CustomLegendConfig;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
interface CustomLegendItem {
|
|
661
|
+
label: string;
|
|
662
|
+
color: string;
|
|
663
|
+
symbol?: "circle" | "square" | "line" | "polygon" | "hexagon" | "icon";
|
|
664
|
+
iconPath?: string;
|
|
665
|
+
size?: number;
|
|
666
|
+
}
|
|
667
|
+
interface CustomLegendConfig {
|
|
668
|
+
title?: string;
|
|
669
|
+
items: CustomLegendItem[];
|
|
670
|
+
position?: "top" | "bottom" | "left" | "right";
|
|
671
|
+
showTitle?: boolean;
|
|
672
|
+
}
|
|
673
|
+
interface PopupConfig {
|
|
674
|
+
enabled: boolean;
|
|
675
|
+
renderContent: (feature: any) => string;
|
|
676
|
+
popupOptions?: {
|
|
677
|
+
maxWidth?: number;
|
|
678
|
+
maxHeight?: number;
|
|
679
|
+
className?: string;
|
|
680
|
+
[key: string]: any;
|
|
681
|
+
};
|
|
682
|
+
}
|
|
683
|
+
interface CustomMapLayer extends MapLayerWithInfo {
|
|
684
|
+
isCustom: true;
|
|
685
|
+
legendConfig?: CustomLegendConfig;
|
|
686
|
+
layerData?: any;
|
|
687
|
+
styleConfig?: {
|
|
688
|
+
fillColor?: string;
|
|
689
|
+
strokeColor?: string;
|
|
690
|
+
strokeWidth?: number;
|
|
691
|
+
fillOpacity?: number;
|
|
692
|
+
strokeOpacity?: number;
|
|
693
|
+
statusColorMap?: Record<string, string>;
|
|
694
|
+
};
|
|
695
|
+
popupConfig?: PopupConfig;
|
|
696
|
+
ontoggle?: () => void;
|
|
697
|
+
}
|
|
698
|
+
interface CustomLayerTemplate {
|
|
699
|
+
id: string;
|
|
700
|
+
name: string;
|
|
701
|
+
description: string;
|
|
702
|
+
type: "GoogleSheets" | "WMS" | "GeoJson" | "GeoTrees" | "Marker" | "MarkerCluster";
|
|
703
|
+
defaultStyle?: CustomMapLayer["styleConfig"];
|
|
704
|
+
legendTemplate?: Omit<CustomLegendConfig, "items">;
|
|
705
|
+
}
|
|
706
|
+
type CustomLayer = {
|
|
707
|
+
id: string;
|
|
708
|
+
index: number;
|
|
709
|
+
isCustom: boolean;
|
|
710
|
+
type: "GeoJson";
|
|
711
|
+
url: string;
|
|
712
|
+
layerName: string;
|
|
713
|
+
color: string;
|
|
714
|
+
opacity: number;
|
|
715
|
+
title: string;
|
|
716
|
+
};
|
|
717
|
+
type SourceData = {
|
|
718
|
+
name: string;
|
|
719
|
+
type: "geojson";
|
|
720
|
+
data: any;
|
|
721
|
+
custom_cluster?: boolean;
|
|
722
|
+
is_cluster?: boolean;
|
|
723
|
+
show_cluster_count?: boolean;
|
|
724
|
+
style?: {
|
|
725
|
+
cluster_color: string;
|
|
726
|
+
cluster_stroke_color: string;
|
|
727
|
+
pin_color: string;
|
|
728
|
+
};
|
|
729
|
+
};
|
|
730
|
+
|
|
616
731
|
interface MapLibreProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
617
732
|
baseLayers?: {
|
|
618
|
-
|
|
619
|
-
type: string;
|
|
620
|
-
layer_type?: "hillshade" | "terrainSource";
|
|
621
|
-
url?: string;
|
|
622
|
-
tileSize?: number;
|
|
623
|
-
}[];
|
|
624
|
-
customLayers?: {
|
|
625
|
-
id: string;
|
|
626
|
-
index: number;
|
|
627
|
-
isCustom: boolean;
|
|
628
|
-
type: "GeoJson";
|
|
629
|
-
url: string;
|
|
630
|
-
layerName: string;
|
|
631
|
-
color: string;
|
|
632
|
-
opacity: number;
|
|
633
|
-
title: string;
|
|
733
|
+
layer_type?: "hillshade" | "terrainSource" | "satellite";
|
|
634
734
|
}[];
|
|
735
|
+
customLayers?: CustomLayer[];
|
|
635
736
|
mapControls?: {
|
|
636
737
|
type: "zoom" | "projection" | "toggle_layers";
|
|
738
|
+
get_bounds?: (arg: any) => any;
|
|
637
739
|
}[];
|
|
638
|
-
sourceData?:
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
style?: {
|
|
645
|
-
cluster_color: string;
|
|
646
|
-
cluster_stroke_color: string;
|
|
647
|
-
};
|
|
648
|
-
}[];
|
|
740
|
+
sourceData?: SourceData[];
|
|
741
|
+
show_popup?: boolean;
|
|
742
|
+
popup?: {
|
|
743
|
+
click?: (arg: any) => void;
|
|
744
|
+
style?: {};
|
|
745
|
+
};
|
|
649
746
|
}
|
|
650
747
|
declare const MapLibre: React__default.ForwardRefExoticComponent<MapLibreProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
651
748
|
|
|
@@ -685,15 +782,15 @@ interface Props$1 {
|
|
|
685
782
|
declare const LayerSwitch: ({ layer }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
686
783
|
|
|
687
784
|
type ClusterEvents = {
|
|
688
|
-
onClick?:
|
|
689
|
-
onDblClick?:
|
|
690
|
-
onMouseDown?:
|
|
691
|
-
onMouseUp?:
|
|
692
|
-
onMouseOver?:
|
|
693
|
-
onMouseOut?:
|
|
694
|
-
onContextMenu?:
|
|
785
|
+
onClick?: L__default.LeafletMouseEventHandlerFn;
|
|
786
|
+
onDblClick?: L__default.LeafletMouseEventHandlerFn;
|
|
787
|
+
onMouseDown?: L__default.LeafletMouseEventHandlerFn;
|
|
788
|
+
onMouseUp?: L__default.LeafletMouseEventHandlerFn;
|
|
789
|
+
onMouseOver?: L__default.LeafletMouseEventHandlerFn;
|
|
790
|
+
onMouseOut?: L__default.LeafletMouseEventHandlerFn;
|
|
791
|
+
onContextMenu?: L__default.LeafletMouseEventHandlerFn;
|
|
695
792
|
};
|
|
696
|
-
declare const MarkerClusterGroup: ForwardRefExoticComponent<
|
|
793
|
+
declare const MarkerClusterGroup: ForwardRefExoticComponent<L__default.MarkerClusterGroupOptions & {
|
|
697
794
|
children: React__default.ReactNode;
|
|
698
795
|
} & ClusterEvents & RefAttributes<any>>;
|
|
699
796
|
|
|
@@ -703,4 +800,4 @@ interface Props {
|
|
|
703
800
|
}
|
|
704
801
|
declare const LocationMarker: ({ position, setPosition }: Props) => react_jsx_runtime.JSX.Element | null;
|
|
705
802
|
|
|
706
|
-
export { Annotation, type AnnotationUndoRedo, type Asset, BasfMap, BasicMap, BingLeafletLayer, CDSE_Layer, CanopyMap, CanvasImage, CustomWMSTileLayer, type CustomWMSTileLayerProps, EvoLandGeometry, type EvoLandRasterType, EvolandContainer, EvolandLeftSideBar, GenericControl, GeoJsonLayer, GeoTreesMap, GeoWikiMap, MapContainer as GeoWikiMapContainer, type ICanvasImageProps, type IMapSidebarProps, type IReadOnlyTiffImageProps, type ITiffImageProps, type ITiffWithD3Props, LabelButton, type LabelButtonProps, LabelButtonView, type LabelButtonViewProps, LayerStoreList, LayerSwitch, LocationMarker, type LocationWithGeometry, MapEvents, MapLibre, MapSidebar, MarkerClusterGroup, OverlayLayer, PointSelection, Questions, type RasterAssetItem, type RasterItem, type RasterItemBase64, RasterType, ReadOnlyTiffImage, SegmentationType, SelectedPoint, TiffImage, TiffImageContainer, TimeSeries, ViewAssets, WaybackTimelineMap, useEvolandStore, useMapLayerStore, useMapStore };
|
|
803
|
+
export { Annotation, type AnnotationUndoRedo, type Asset, BasfMap, BasicMap, BingLeafletLayer, CDSE_Layer, CanopyMap, CanvasImage, type CustomLayer, type CustomLayerTemplate, type CustomLegendConfig, type CustomLegendItem, type CustomMapLayer, CustomWMSTileLayer, type CustomWMSTileLayerProps, EvoLandGeometry, type EvoLandRasterType, EvolandContainer, EvolandLeftSideBar, GenericControl, GeoJsonLayer, GeoTreesMap, GeoWikiMap, MapContainer as GeoWikiMapContainer, type ICanvasImageProps, type IMapSidebarProps, type IReadOnlyTiffImageProps, type ITiffImageProps, type ITiffWithD3Props, LabelButton, type LabelButtonProps, LabelButtonView, type LabelButtonViewProps, LayerStoreList, LayerSwitch, LocationMarker, type LocationWithGeometry, MapEvents, MapLibre, MapSidebar, MarkerClusterGroup, OverlayLayer, PointSelection, type PopupConfig, Questions, type RasterAssetItem, type RasterItem, type RasterItemBase64, RasterType, ReadOnlyTiffImage, SegmentationType, SelectedPoint, type SourceData, TiffImage, TiffImageContainer, TimeSeries, ViewAssets, WaybackTimelineMap, useEvolandStore, useMapLayerStore, useMapStore };
|
package/dist/index.d.ts
CHANGED
|
@@ -245,7 +245,7 @@ interface CustomWMSTileLayerProps extends WMSOptions, LayerProps {
|
|
|
245
245
|
}
|
|
246
246
|
declare const CustomWMSTileLayer: ForwardRefExoticComponent<CustomWMSTileLayerProps & RefAttributes<BetterWMS>>;
|
|
247
247
|
|
|
248
|
-
interface MapLayerInfo {
|
|
248
|
+
interface MapLayerInfo$1 {
|
|
249
249
|
citation?: string;
|
|
250
250
|
dateOfContent?: string;
|
|
251
251
|
description?: string;
|
|
@@ -268,38 +268,38 @@ interface MapLayerInfo {
|
|
|
268
268
|
};
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
interface CustomLegendItem {
|
|
271
|
+
interface CustomLegendItem$1 {
|
|
272
272
|
label: string;
|
|
273
273
|
color: string;
|
|
274
274
|
symbol?: "circle" | "square" | "line" | "polygon" | "hexagon" | "icon";
|
|
275
275
|
iconPath?: string;
|
|
276
276
|
size?: number;
|
|
277
277
|
}
|
|
278
|
-
interface CustomLegendConfig {
|
|
278
|
+
interface CustomLegendConfig$1 {
|
|
279
279
|
title?: string;
|
|
280
|
-
items: CustomLegendItem[];
|
|
280
|
+
items: CustomLegendItem$1[];
|
|
281
281
|
position?: "top" | "bottom" | "left" | "right";
|
|
282
282
|
showTitle?: boolean;
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
interface MapLayerWithInfo {
|
|
285
|
+
interface MapLayerWithInfo$1 {
|
|
286
286
|
id: string;
|
|
287
287
|
title?: string;
|
|
288
288
|
url: string;
|
|
289
289
|
type: "WMS" | "GeoJson" | "GeoTrees" | "GoogleSheets" | "Marker" | "MarkerCluster";
|
|
290
290
|
layerName: string;
|
|
291
|
-
layerInfo?: MapLayerInfo;
|
|
291
|
+
layerInfo?: MapLayerInfo$1;
|
|
292
292
|
opacity: number;
|
|
293
293
|
color: string;
|
|
294
294
|
properties?: string;
|
|
295
295
|
showPopup?: boolean;
|
|
296
296
|
index: number;
|
|
297
297
|
order?: number;
|
|
298
|
-
legendConfig?: CustomLegendConfig;
|
|
298
|
+
legendConfig?: CustomLegendConfig$1;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
declare const GeoJsonLayer: React.FC<{
|
|
302
|
-
layer: MapLayerWithInfo;
|
|
302
|
+
layer: MapLayerWithInfo$1;
|
|
303
303
|
}>;
|
|
304
304
|
|
|
305
305
|
declare const TimeSeries: () => react_jsx_runtime.JSX.Element;
|
|
@@ -337,11 +337,11 @@ type State$2 = {
|
|
|
337
337
|
declare const useMapStore: zustand.UseBoundStore<zustand.StoreApi<State$2>>;
|
|
338
338
|
|
|
339
339
|
type State$1 = {
|
|
340
|
-
layers: MapLayerWithInfo[];
|
|
341
|
-
add: (layer: MapLayerWithInfo) => void;
|
|
342
|
-
remove: (layer: MapLayerWithInfo) => void;
|
|
340
|
+
layers: MapLayerWithInfo$1[];
|
|
341
|
+
add: (layer: MapLayerWithInfo$1) => void;
|
|
342
|
+
remove: (layer: MapLayerWithInfo$1) => void;
|
|
343
343
|
updateOpacity: (id: string, opacity: number) => void;
|
|
344
|
-
updateLayer: (id: string, updates: Partial<MapLayerWithInfo>) => void;
|
|
344
|
+
updateLayer: (id: string, updates: Partial<MapLayerWithInfo$1>) => void;
|
|
345
345
|
reorderLayers: (oldIndex: number, newIndex: number) => void;
|
|
346
346
|
refresh: () => void;
|
|
347
347
|
selectedLayer: string;
|
|
@@ -497,6 +497,9 @@ type State = {
|
|
|
497
497
|
selectedBand: number | undefined;
|
|
498
498
|
taskGeometry: any;
|
|
499
499
|
task_for_review: boolean;
|
|
500
|
+
s2_tile_url: string | null;
|
|
501
|
+
landsat_tile_url: string | null;
|
|
502
|
+
selectedBaseLayer: "Sentinel-2" | "Landsat-8" | null;
|
|
500
503
|
};
|
|
501
504
|
type Actions = {
|
|
502
505
|
setAnnotationUndoRedo: (annotationUndoRedo: AnnotationUndoRedo, annotatedRasterAsset: RasterAssetItem) => void;
|
|
@@ -562,6 +565,9 @@ type Actions = {
|
|
|
562
565
|
setAnnotatedRasterAsset: (annotated_raster: RasterAssetItem) => void;
|
|
563
566
|
setTaskGeometry: (taskGeometry: any) => void;
|
|
564
567
|
setTaskForReview: (taskForReview: boolean) => void;
|
|
568
|
+
setS2TileUrl: (url: string) => void;
|
|
569
|
+
setLandsatTileUrl: (url: string) => void;
|
|
570
|
+
setSelectedBaseLayer: (baseLayer: "Sentinel-2" | "Landsat-8" | null) => void;
|
|
565
571
|
};
|
|
566
572
|
declare const useEvolandStore: UseBoundStore<StoreApi<State & Actions>>;
|
|
567
573
|
|
|
@@ -613,39 +619,130 @@ declare const WaybackTimelineMap: (props: {
|
|
|
613
619
|
mapZoom: number;
|
|
614
620
|
}) => react_jsx_runtime.JSX.Element;
|
|
615
621
|
|
|
622
|
+
interface MapLayerInfo {
|
|
623
|
+
citation?: string;
|
|
624
|
+
dateOfContent?: string;
|
|
625
|
+
description?: string;
|
|
626
|
+
function?: string;
|
|
627
|
+
geographicCoverage?: string;
|
|
628
|
+
isVisible?: boolean;
|
|
629
|
+
license?: string;
|
|
630
|
+
source?: string;
|
|
631
|
+
name?: string;
|
|
632
|
+
resolution?: string;
|
|
633
|
+
overview?: string;
|
|
634
|
+
hoverCardText?: string;
|
|
635
|
+
sourceLink?: {
|
|
636
|
+
name?: string;
|
|
637
|
+
href?: string;
|
|
638
|
+
};
|
|
639
|
+
citationLink?: {
|
|
640
|
+
name?: string;
|
|
641
|
+
href?: string;
|
|
642
|
+
};
|
|
643
|
+
}
|
|
644
|
+
interface MapLayerWithInfo {
|
|
645
|
+
id: string;
|
|
646
|
+
title?: string;
|
|
647
|
+
url: string;
|
|
648
|
+
type: "WMS" | "GeoJson" | "GeoTrees" | "GoogleSheets" | "Marker" | "MarkerCluster";
|
|
649
|
+
layerName: string;
|
|
650
|
+
layerInfo?: MapLayerInfo;
|
|
651
|
+
opacity: number;
|
|
652
|
+
color: string;
|
|
653
|
+
properties?: string;
|
|
654
|
+
showPopup?: boolean;
|
|
655
|
+
index: number;
|
|
656
|
+
order?: number;
|
|
657
|
+
legendConfig?: CustomLegendConfig;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
interface CustomLegendItem {
|
|
661
|
+
label: string;
|
|
662
|
+
color: string;
|
|
663
|
+
symbol?: "circle" | "square" | "line" | "polygon" | "hexagon" | "icon";
|
|
664
|
+
iconPath?: string;
|
|
665
|
+
size?: number;
|
|
666
|
+
}
|
|
667
|
+
interface CustomLegendConfig {
|
|
668
|
+
title?: string;
|
|
669
|
+
items: CustomLegendItem[];
|
|
670
|
+
position?: "top" | "bottom" | "left" | "right";
|
|
671
|
+
showTitle?: boolean;
|
|
672
|
+
}
|
|
673
|
+
interface PopupConfig {
|
|
674
|
+
enabled: boolean;
|
|
675
|
+
renderContent: (feature: any) => string;
|
|
676
|
+
popupOptions?: {
|
|
677
|
+
maxWidth?: number;
|
|
678
|
+
maxHeight?: number;
|
|
679
|
+
className?: string;
|
|
680
|
+
[key: string]: any;
|
|
681
|
+
};
|
|
682
|
+
}
|
|
683
|
+
interface CustomMapLayer extends MapLayerWithInfo {
|
|
684
|
+
isCustom: true;
|
|
685
|
+
legendConfig?: CustomLegendConfig;
|
|
686
|
+
layerData?: any;
|
|
687
|
+
styleConfig?: {
|
|
688
|
+
fillColor?: string;
|
|
689
|
+
strokeColor?: string;
|
|
690
|
+
strokeWidth?: number;
|
|
691
|
+
fillOpacity?: number;
|
|
692
|
+
strokeOpacity?: number;
|
|
693
|
+
statusColorMap?: Record<string, string>;
|
|
694
|
+
};
|
|
695
|
+
popupConfig?: PopupConfig;
|
|
696
|
+
ontoggle?: () => void;
|
|
697
|
+
}
|
|
698
|
+
interface CustomLayerTemplate {
|
|
699
|
+
id: string;
|
|
700
|
+
name: string;
|
|
701
|
+
description: string;
|
|
702
|
+
type: "GoogleSheets" | "WMS" | "GeoJson" | "GeoTrees" | "Marker" | "MarkerCluster";
|
|
703
|
+
defaultStyle?: CustomMapLayer["styleConfig"];
|
|
704
|
+
legendTemplate?: Omit<CustomLegendConfig, "items">;
|
|
705
|
+
}
|
|
706
|
+
type CustomLayer = {
|
|
707
|
+
id: string;
|
|
708
|
+
index: number;
|
|
709
|
+
isCustom: boolean;
|
|
710
|
+
type: "GeoJson";
|
|
711
|
+
url: string;
|
|
712
|
+
layerName: string;
|
|
713
|
+
color: string;
|
|
714
|
+
opacity: number;
|
|
715
|
+
title: string;
|
|
716
|
+
};
|
|
717
|
+
type SourceData = {
|
|
718
|
+
name: string;
|
|
719
|
+
type: "geojson";
|
|
720
|
+
data: any;
|
|
721
|
+
custom_cluster?: boolean;
|
|
722
|
+
is_cluster?: boolean;
|
|
723
|
+
show_cluster_count?: boolean;
|
|
724
|
+
style?: {
|
|
725
|
+
cluster_color: string;
|
|
726
|
+
cluster_stroke_color: string;
|
|
727
|
+
pin_color: string;
|
|
728
|
+
};
|
|
729
|
+
};
|
|
730
|
+
|
|
616
731
|
interface MapLibreProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
617
732
|
baseLayers?: {
|
|
618
|
-
|
|
619
|
-
type: string;
|
|
620
|
-
layer_type?: "hillshade" | "terrainSource";
|
|
621
|
-
url?: string;
|
|
622
|
-
tileSize?: number;
|
|
623
|
-
}[];
|
|
624
|
-
customLayers?: {
|
|
625
|
-
id: string;
|
|
626
|
-
index: number;
|
|
627
|
-
isCustom: boolean;
|
|
628
|
-
type: "GeoJson";
|
|
629
|
-
url: string;
|
|
630
|
-
layerName: string;
|
|
631
|
-
color: string;
|
|
632
|
-
opacity: number;
|
|
633
|
-
title: string;
|
|
733
|
+
layer_type?: "hillshade" | "terrainSource" | "satellite";
|
|
634
734
|
}[];
|
|
735
|
+
customLayers?: CustomLayer[];
|
|
635
736
|
mapControls?: {
|
|
636
737
|
type: "zoom" | "projection" | "toggle_layers";
|
|
738
|
+
get_bounds?: (arg: any) => any;
|
|
637
739
|
}[];
|
|
638
|
-
sourceData?:
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
style?: {
|
|
645
|
-
cluster_color: string;
|
|
646
|
-
cluster_stroke_color: string;
|
|
647
|
-
};
|
|
648
|
-
}[];
|
|
740
|
+
sourceData?: SourceData[];
|
|
741
|
+
show_popup?: boolean;
|
|
742
|
+
popup?: {
|
|
743
|
+
click?: (arg: any) => void;
|
|
744
|
+
style?: {};
|
|
745
|
+
};
|
|
649
746
|
}
|
|
650
747
|
declare const MapLibre: React__default.ForwardRefExoticComponent<MapLibreProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
651
748
|
|
|
@@ -685,15 +782,15 @@ interface Props$1 {
|
|
|
685
782
|
declare const LayerSwitch: ({ layer }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
686
783
|
|
|
687
784
|
type ClusterEvents = {
|
|
688
|
-
onClick?:
|
|
689
|
-
onDblClick?:
|
|
690
|
-
onMouseDown?:
|
|
691
|
-
onMouseUp?:
|
|
692
|
-
onMouseOver?:
|
|
693
|
-
onMouseOut?:
|
|
694
|
-
onContextMenu?:
|
|
785
|
+
onClick?: L__default.LeafletMouseEventHandlerFn;
|
|
786
|
+
onDblClick?: L__default.LeafletMouseEventHandlerFn;
|
|
787
|
+
onMouseDown?: L__default.LeafletMouseEventHandlerFn;
|
|
788
|
+
onMouseUp?: L__default.LeafletMouseEventHandlerFn;
|
|
789
|
+
onMouseOver?: L__default.LeafletMouseEventHandlerFn;
|
|
790
|
+
onMouseOut?: L__default.LeafletMouseEventHandlerFn;
|
|
791
|
+
onContextMenu?: L__default.LeafletMouseEventHandlerFn;
|
|
695
792
|
};
|
|
696
|
-
declare const MarkerClusterGroup: ForwardRefExoticComponent<
|
|
793
|
+
declare const MarkerClusterGroup: ForwardRefExoticComponent<L__default.MarkerClusterGroupOptions & {
|
|
697
794
|
children: React__default.ReactNode;
|
|
698
795
|
} & ClusterEvents & RefAttributes<any>>;
|
|
699
796
|
|
|
@@ -703,4 +800,4 @@ interface Props {
|
|
|
703
800
|
}
|
|
704
801
|
declare const LocationMarker: ({ position, setPosition }: Props) => react_jsx_runtime.JSX.Element | null;
|
|
705
802
|
|
|
706
|
-
export { Annotation, type AnnotationUndoRedo, type Asset, BasfMap, BasicMap, BingLeafletLayer, CDSE_Layer, CanopyMap, CanvasImage, CustomWMSTileLayer, type CustomWMSTileLayerProps, EvoLandGeometry, type EvoLandRasterType, EvolandContainer, EvolandLeftSideBar, GenericControl, GeoJsonLayer, GeoTreesMap, GeoWikiMap, MapContainer as GeoWikiMapContainer, type ICanvasImageProps, type IMapSidebarProps, type IReadOnlyTiffImageProps, type ITiffImageProps, type ITiffWithD3Props, LabelButton, type LabelButtonProps, LabelButtonView, type LabelButtonViewProps, LayerStoreList, LayerSwitch, LocationMarker, type LocationWithGeometry, MapEvents, MapLibre, MapSidebar, MarkerClusterGroup, OverlayLayer, PointSelection, Questions, type RasterAssetItem, type RasterItem, type RasterItemBase64, RasterType, ReadOnlyTiffImage, SegmentationType, SelectedPoint, TiffImage, TiffImageContainer, TimeSeries, ViewAssets, WaybackTimelineMap, useEvolandStore, useMapLayerStore, useMapStore };
|
|
803
|
+
export { Annotation, type AnnotationUndoRedo, type Asset, BasfMap, BasicMap, BingLeafletLayer, CDSE_Layer, CanopyMap, CanvasImage, type CustomLayer, type CustomLayerTemplate, type CustomLegendConfig, type CustomLegendItem, type CustomMapLayer, CustomWMSTileLayer, type CustomWMSTileLayerProps, EvoLandGeometry, type EvoLandRasterType, EvolandContainer, EvolandLeftSideBar, GenericControl, GeoJsonLayer, GeoTreesMap, GeoWikiMap, MapContainer as GeoWikiMapContainer, type ICanvasImageProps, type IMapSidebarProps, type IReadOnlyTiffImageProps, type ITiffImageProps, type ITiffWithD3Props, LabelButton, type LabelButtonProps, LabelButtonView, type LabelButtonViewProps, LayerStoreList, LayerSwitch, LocationMarker, type LocationWithGeometry, MapEvents, MapLibre, MapSidebar, MarkerClusterGroup, OverlayLayer, PointSelection, type PopupConfig, Questions, type RasterAssetItem, type RasterItem, type RasterItemBase64, RasterType, ReadOnlyTiffImage, SegmentationType, SelectedPoint, type SourceData, TiffImage, TiffImageContainer, TimeSeries, ViewAssets, WaybackTimelineMap, useEvolandStore, useMapLayerStore, useMapStore };
|