@geowiki/map 0.16.9-dev.1 → 0.16.9-dev.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/dist/GeoWikiMap-G2JPQNTZ.mjs +7 -0
- package/dist/chunk-3LCQXIYM.mjs +11086 -0
- package/dist/index.d.mts +43 -9
- package/dist/index.d.ts +43 -9
- package/dist/index.js +18648 -14864
- package/dist/index.mjs +8755 -16469
- package/dist/styles.css +1 -1
- package/package.json +6 -7
package/dist/index.d.mts
CHANGED
|
@@ -11,7 +11,7 @@ import { UseBoundStore, StoreApi } from 'zustand';
|
|
|
11
11
|
import { TaskStatus, UtmResult } from '@geowiki/core';
|
|
12
12
|
import { AssetElement } from '@geowiki/evoland-api-proxy';
|
|
13
13
|
import { MapContainerProps } from 'react-leaflet';
|
|
14
|
-
import { MapMenuItemItemDto, MapSettingsItemDto } from '@geowiki/cms-proxy';
|
|
14
|
+
import { MapMenuItemItemDto, MapSettingsItemDto, LayerItemDto } from '@geowiki/cms-proxy';
|
|
15
15
|
|
|
16
16
|
declare const POSITION_CLASSES: {
|
|
17
17
|
bottomleft: string;
|
|
@@ -596,12 +596,12 @@ declare const GeoTreesMap: () => react_jsx_runtime.JSX.Element;
|
|
|
596
596
|
|
|
597
597
|
declare const CanopyMap: () => react_jsx_runtime.JSX.Element;
|
|
598
598
|
|
|
599
|
-
interface Props {
|
|
599
|
+
interface Props$2 {
|
|
600
600
|
mapMenuItems: MapMenuItemItemDto[];
|
|
601
601
|
mapSettings: MapSettingsItemDto;
|
|
602
602
|
session: any;
|
|
603
603
|
}
|
|
604
|
-
declare const GeoWikiMap: React__default.MemoExoticComponent<({ mapSettings, session }: Props) => react_jsx_runtime.JSX.Element>;
|
|
604
|
+
declare const GeoWikiMap: React__default.MemoExoticComponent<({ mapSettings, session }: Props$2) => react_jsx_runtime.JSX.Element>;
|
|
605
605
|
|
|
606
606
|
type BaseLayerType = "Esri World imagery" | "OpenStreetMap" | "Google Hybrid" | "Google Satellite";
|
|
607
607
|
|
|
@@ -615,11 +615,7 @@ declare const WaybackTimelineMap: (props: {
|
|
|
615
615
|
|
|
616
616
|
interface MapLibreProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
617
617
|
baseLayers?: {
|
|
618
|
-
|
|
619
|
-
type: string;
|
|
620
|
-
layer_type?: "hillshade" | "terrainSource";
|
|
621
|
-
url?: string;
|
|
622
|
-
tileSize?: number;
|
|
618
|
+
layer_type?: "hillshade" | "terrainSource" | "satellite";
|
|
623
619
|
}[];
|
|
624
620
|
customLayers?: {
|
|
625
621
|
id: string;
|
|
@@ -634,18 +630,26 @@ interface MapLibreProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
|
634
630
|
}[];
|
|
635
631
|
mapControls?: {
|
|
636
632
|
type: "zoom" | "projection" | "toggle_layers";
|
|
633
|
+
get_bounds?: (arg: any) => any;
|
|
637
634
|
}[];
|
|
638
635
|
sourceData?: {
|
|
639
636
|
name: string;
|
|
640
637
|
type: "geojson";
|
|
641
638
|
data: any;
|
|
639
|
+
custom_cluster?: boolean;
|
|
642
640
|
is_cluster?: boolean;
|
|
643
641
|
show_cluster_count?: boolean;
|
|
644
642
|
style?: {
|
|
645
643
|
cluster_color: string;
|
|
646
644
|
cluster_stroke_color: string;
|
|
645
|
+
pin_color: string;
|
|
647
646
|
};
|
|
648
647
|
}[];
|
|
648
|
+
show_popup?: boolean;
|
|
649
|
+
popup?: {
|
|
650
|
+
click?: (arg: any) => void;
|
|
651
|
+
style?: {};
|
|
652
|
+
};
|
|
649
653
|
}
|
|
650
654
|
declare const MapLibre: React__default.ForwardRefExoticComponent<MapLibreProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
651
655
|
|
|
@@ -673,4 +677,34 @@ declare class BingLayer extends L.TileLayer {
|
|
|
673
677
|
|
|
674
678
|
declare const BingLeafletLayer: ForwardRefExoticComponent<BingLayerOptions & RefAttributes<BingLayer>>;
|
|
675
679
|
|
|
676
|
-
|
|
680
|
+
declare function MapContainer({ mapMenuItems, mapSettings, session, }: {
|
|
681
|
+
mapMenuItems?: MapMenuItemItemDto[];
|
|
682
|
+
mapSettings?: MapSettingsItemDto;
|
|
683
|
+
session?: unknown;
|
|
684
|
+
}): react_jsx_runtime.JSX.Element;
|
|
685
|
+
|
|
686
|
+
interface Props$1 {
|
|
687
|
+
layer: LayerItemDto;
|
|
688
|
+
}
|
|
689
|
+
declare const LayerSwitch: ({ layer }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
690
|
+
|
|
691
|
+
type ClusterEvents = {
|
|
692
|
+
onClick?: L.LeafletMouseEventHandlerFn;
|
|
693
|
+
onDblClick?: L.LeafletMouseEventHandlerFn;
|
|
694
|
+
onMouseDown?: L.LeafletMouseEventHandlerFn;
|
|
695
|
+
onMouseUp?: L.LeafletMouseEventHandlerFn;
|
|
696
|
+
onMouseOver?: L.LeafletMouseEventHandlerFn;
|
|
697
|
+
onMouseOut?: L.LeafletMouseEventHandlerFn;
|
|
698
|
+
onContextMenu?: L.LeafletMouseEventHandlerFn;
|
|
699
|
+
};
|
|
700
|
+
declare const MarkerClusterGroup: ForwardRefExoticComponent<L.MarkerClusterGroupOptions & {
|
|
701
|
+
children: React__default.ReactNode;
|
|
702
|
+
} & ClusterEvents & RefAttributes<any>>;
|
|
703
|
+
|
|
704
|
+
interface Props {
|
|
705
|
+
position: LatLng;
|
|
706
|
+
setPosition: React__default.Dispatch<React__default.SetStateAction<LatLng>>;
|
|
707
|
+
}
|
|
708
|
+
declare const LocationMarker: ({ position, setPosition }: Props) => react_jsx_runtime.JSX.Element | null;
|
|
709
|
+
|
|
710
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { UseBoundStore, StoreApi } from 'zustand';
|
|
|
11
11
|
import { TaskStatus, UtmResult } from '@geowiki/core';
|
|
12
12
|
import { AssetElement } from '@geowiki/evoland-api-proxy';
|
|
13
13
|
import { MapContainerProps } from 'react-leaflet';
|
|
14
|
-
import { MapMenuItemItemDto, MapSettingsItemDto } from '@geowiki/cms-proxy';
|
|
14
|
+
import { MapMenuItemItemDto, MapSettingsItemDto, LayerItemDto } from '@geowiki/cms-proxy';
|
|
15
15
|
|
|
16
16
|
declare const POSITION_CLASSES: {
|
|
17
17
|
bottomleft: string;
|
|
@@ -596,12 +596,12 @@ declare const GeoTreesMap: () => react_jsx_runtime.JSX.Element;
|
|
|
596
596
|
|
|
597
597
|
declare const CanopyMap: () => react_jsx_runtime.JSX.Element;
|
|
598
598
|
|
|
599
|
-
interface Props {
|
|
599
|
+
interface Props$2 {
|
|
600
600
|
mapMenuItems: MapMenuItemItemDto[];
|
|
601
601
|
mapSettings: MapSettingsItemDto;
|
|
602
602
|
session: any;
|
|
603
603
|
}
|
|
604
|
-
declare const GeoWikiMap: React__default.MemoExoticComponent<({ mapSettings, session }: Props) => react_jsx_runtime.JSX.Element>;
|
|
604
|
+
declare const GeoWikiMap: React__default.MemoExoticComponent<({ mapSettings, session }: Props$2) => react_jsx_runtime.JSX.Element>;
|
|
605
605
|
|
|
606
606
|
type BaseLayerType = "Esri World imagery" | "OpenStreetMap" | "Google Hybrid" | "Google Satellite";
|
|
607
607
|
|
|
@@ -615,11 +615,7 @@ declare const WaybackTimelineMap: (props: {
|
|
|
615
615
|
|
|
616
616
|
interface MapLibreProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
617
617
|
baseLayers?: {
|
|
618
|
-
|
|
619
|
-
type: string;
|
|
620
|
-
layer_type?: "hillshade" | "terrainSource";
|
|
621
|
-
url?: string;
|
|
622
|
-
tileSize?: number;
|
|
618
|
+
layer_type?: "hillshade" | "terrainSource" | "satellite";
|
|
623
619
|
}[];
|
|
624
620
|
customLayers?: {
|
|
625
621
|
id: string;
|
|
@@ -634,18 +630,26 @@ interface MapLibreProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
|
634
630
|
}[];
|
|
635
631
|
mapControls?: {
|
|
636
632
|
type: "zoom" | "projection" | "toggle_layers";
|
|
633
|
+
get_bounds?: (arg: any) => any;
|
|
637
634
|
}[];
|
|
638
635
|
sourceData?: {
|
|
639
636
|
name: string;
|
|
640
637
|
type: "geojson";
|
|
641
638
|
data: any;
|
|
639
|
+
custom_cluster?: boolean;
|
|
642
640
|
is_cluster?: boolean;
|
|
643
641
|
show_cluster_count?: boolean;
|
|
644
642
|
style?: {
|
|
645
643
|
cluster_color: string;
|
|
646
644
|
cluster_stroke_color: string;
|
|
645
|
+
pin_color: string;
|
|
647
646
|
};
|
|
648
647
|
}[];
|
|
648
|
+
show_popup?: boolean;
|
|
649
|
+
popup?: {
|
|
650
|
+
click?: (arg: any) => void;
|
|
651
|
+
style?: {};
|
|
652
|
+
};
|
|
649
653
|
}
|
|
650
654
|
declare const MapLibre: React__default.ForwardRefExoticComponent<MapLibreProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
651
655
|
|
|
@@ -673,4 +677,34 @@ declare class BingLayer extends L.TileLayer {
|
|
|
673
677
|
|
|
674
678
|
declare const BingLeafletLayer: ForwardRefExoticComponent<BingLayerOptions & RefAttributes<BingLayer>>;
|
|
675
679
|
|
|
676
|
-
|
|
680
|
+
declare function MapContainer({ mapMenuItems, mapSettings, session, }: {
|
|
681
|
+
mapMenuItems?: MapMenuItemItemDto[];
|
|
682
|
+
mapSettings?: MapSettingsItemDto;
|
|
683
|
+
session?: unknown;
|
|
684
|
+
}): react_jsx_runtime.JSX.Element;
|
|
685
|
+
|
|
686
|
+
interface Props$1 {
|
|
687
|
+
layer: LayerItemDto;
|
|
688
|
+
}
|
|
689
|
+
declare const LayerSwitch: ({ layer }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
690
|
+
|
|
691
|
+
type ClusterEvents = {
|
|
692
|
+
onClick?: L.LeafletMouseEventHandlerFn;
|
|
693
|
+
onDblClick?: L.LeafletMouseEventHandlerFn;
|
|
694
|
+
onMouseDown?: L.LeafletMouseEventHandlerFn;
|
|
695
|
+
onMouseUp?: L.LeafletMouseEventHandlerFn;
|
|
696
|
+
onMouseOver?: L.LeafletMouseEventHandlerFn;
|
|
697
|
+
onMouseOut?: L.LeafletMouseEventHandlerFn;
|
|
698
|
+
onContextMenu?: L.LeafletMouseEventHandlerFn;
|
|
699
|
+
};
|
|
700
|
+
declare const MarkerClusterGroup: ForwardRefExoticComponent<L.MarkerClusterGroupOptions & {
|
|
701
|
+
children: React__default.ReactNode;
|
|
702
|
+
} & ClusterEvents & RefAttributes<any>>;
|
|
703
|
+
|
|
704
|
+
interface Props {
|
|
705
|
+
position: LatLng;
|
|
706
|
+
setPosition: React__default.Dispatch<React__default.SetStateAction<LatLng>>;
|
|
707
|
+
}
|
|
708
|
+
declare const LocationMarker: ({ position, setPosition }: Props) => react_jsx_runtime.JSX.Element | null;
|
|
709
|
+
|
|
710
|
+
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 };
|