@mapcomponents/react-maplibre 0.1.74 → 0.1.76

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,6 +1,17 @@
1
1
  # Change Log
2
2
 
3
+ ## [v0.1.76] - 2023-04-04
3
4
 
5
+ ### Fixed
6
+ - b879750: fix MlGeoJsonLayer layout option props spread order
7
+
8
+ ### Added
9
+ - b879750: add thumbnails to style select menu
10
+
11
+ ## [v0.1.75] - 2023-04-04
12
+
13
+ ### Fixed
14
+ - 66c8df2: add missing LayerListItemFactory export
4
15
  ## [v0.1.74] - 2023-04-03
5
16
 
6
17
  ### Fixed
@@ -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
  }>;
package/dist/index.d.ts CHANGED
@@ -59,6 +59,7 @@ export { default as LayerListItem } from './ui_components/LayerList/LayerListIte
59
59
  export { default as LayerListFolder } from './ui_components/LayerList/LayerListFolder';
60
60
  export { default as LayerPropertyForm } from './ui_components/LayerList/util/LayerPropertyForm';
61
61
  export { default as LayerListItemVectorLayer } from './ui_components/LayerList/util/LayerListItemVectorLayer';
62
+ export { default as LayerListItemFactory } from './ui_components/LayerList/LayerListItemFactory';
62
63
  export { default as AddLayerButton } from './ui_components/AddLayerButton/AddLayerButton';
63
64
  export { default as AddLayerPopup } from './ui_components/AddLayerButton/AddLayerPopup';
64
65
  export { default as GeoJsonLayerForm } from './ui_components/AddLayerButton/LayerConfigForms/GeoJsonLayerForm';