@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 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;
@@ -1,5 +1,5 @@
1
1
  import { useMapType } from './useMap';
2
- import { SourceSpecification, LayerSpecification, MapMouseEvent, GeoJSONFeature, Style, MapEventType, Map, RasterLayerSpecification, BackgroundLayerSpecification, VideoSourceSpecification, ImageSourceSpecification, HillshadeLayerSpecification } from 'maplibre-gl';
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<Exclude<LayerSpecification, RasterLayerSpecification | BackgroundLayerSpecification | HillshadeLayerSpecification> & {
23
+ options: Partial<LayerSpecification & {
24
24
  source?: Partial<Exclude<SourceSpecification, VideoSourceSpecification | ImageSourceSpecification>>;
25
25
  id?: string;
26
26
  }>;