@mapcomponents/react-maplibre 0.1.75 → 0.1.77
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/CHANGELOG.md +23 -0
- package/dist/components/MlWmsLoader/MlWmsLoader.d.ts +3 -0
- package/dist/hooks/useLayer.d.ts +2 -2
- package/dist/index.esm.js +435 -384
- package/dist/index.esm.js.map +1 -1
- package/dist/ui_components/AddLayerButton/AddLayerPopup.d.ts +1 -0
- package/dist/ui_components/LayerList/LayerList.stories.d.ts +1 -1
- package/dist/ui_components/LayerList/LayerListItemFactory.d.ts +1 -0
- package/dist/ui_components/SelectStyleButton/SelectStyleButton.d.ts +3 -0
- package/dist/ui_components/SelectStyleButton/SelectStylePopup.d.ts +6 -1
- package/package.json +1 -2
- package/dist/ui_components/Tooltip.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## [v0.1.77] - 2023-04-05
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Fixed
|
|
7
|
+
- 92bac5c: remove deprecated @mui/styles dependency; fixes npm compatibility
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- 6512e26: add name prop to MlWmsLoader
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- 6512e26: make AddLayerPopup initial config state configurable
|
|
14
|
+
- 6512e26: make MlWmsLoader featureInfoActive controllable from parent component
|
|
15
|
+
- 6512e26: make LayerListItemFactory control featureInfoActive to always reflect the state in LayerConfig
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
## [v0.1.76] - 2023-04-04
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
- b879750: fix MlGeoJsonLayer layout option props spread order
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
- b879750: add thumbnails to style select menu
|
|
3
26
|
|
|
4
27
|
## [v0.1.75] - 2023-04-04
|
|
5
28
|
|
|
@@ -34,7 +34,10 @@ export interface MlWmsLoaderProps {
|
|
|
34
34
|
zoomToExtent?: boolean;
|
|
35
35
|
lngLat?: LngLat;
|
|
36
36
|
idPrefix?: string;
|
|
37
|
+
name?: string;
|
|
37
38
|
featureInfoEnabled?: boolean;
|
|
39
|
+
featureInfoActive?: boolean;
|
|
40
|
+
setFeatureInfoActive?: (val: boolean | ((current: boolean) => boolean)) => void;
|
|
38
41
|
config?: WmsConfig;
|
|
39
42
|
onConfigChange?: (config: WmsConfig | false) => void;
|
|
40
43
|
setLayers?: (layers: LayerType[]) => void;
|
package/dist/hooks/useLayer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMapType } from './useMap';
|
|
2
|
-
import { SourceSpecification, LayerSpecification, MapMouseEvent, GeoJSONFeature, Style, MapEventType, Map,
|
|
2
|
+
import { SourceSpecification, LayerSpecification, MapMouseEvent, GeoJSONFeature, Style, MapEventType, Map, VideoSourceSpecification, ImageSourceSpecification } from 'maplibre-gl';
|
|
3
3
|
import MapLibreGlWrapper from '../components/MapLibreMap/lib/MapLibreGlWrapper';
|
|
4
4
|
import { GeoJSONObject } from '@turf/turf';
|
|
5
5
|
type getLayerType = Style['getLayer'];
|
|
@@ -20,7 +20,7 @@ export interface useLayerProps {
|
|
|
20
20
|
insertBeforeLayer?: string;
|
|
21
21
|
insertBeforeFirstSymbolLayer?: boolean;
|
|
22
22
|
geojson?: GeoJSONObject;
|
|
23
|
-
options: Partial<
|
|
23
|
+
options: Partial<LayerSpecification & {
|
|
24
24
|
source?: Partial<Exclude<SourceSpecification, VideoSourceSpecification | ImageSourceSpecification>>;
|
|
25
25
|
id?: string;
|
|
26
26
|
}>;
|