@kystverket/styrbord-kart 0.1.3 → 0.2.0

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/README.md CHANGED
@@ -87,9 +87,3 @@ export default defineConfig({
87
87
  },
88
88
  });
89
89
  ```
90
-
91
- ## Endringslogg
92
-
93
- ### 2026-03-06 -- v0.0.5
94
-
95
- - README omskrevet for `@kystverket/styrbord-kart` med kartspesifikk dokumentasjon.
@@ -9,5 +9,5 @@ import type { GeoJsonEditorProps } from "./GeoJsonEditor.types";
9
9
  * Supports feature hover (with customizable content per type) and selection
10
10
  * callbacks when using terra-draw's select mode.
11
11
  */
12
- export declare function GeoJsonEditor({ value, onChange, modes, editable, deletable, fitBounds, fitBoundsPadding, showLayerToggle, height, className, disabled, hoverable, onHover, onSelect, hoverContent, onCoordinateClick, onImportError, showCenterAction, singleFeature, getLabel, }: GeoJsonEditorProps): React.JSX.Element;
12
+ export declare function GeoJsonEditor({ value, onChange, modes, editable, deletable, fitBounds, fitBoundsPadding, showLayerToggle, height, className, disabled, hoverable, onHover, onSelect, hoverContent, onCoordinateClick, onImportError, showCenterAction, showZoomControls, singleFeature, getLabel, }: GeoJsonEditorProps): React.JSX.Element;
13
13
  export default GeoJsonEditor;
@@ -8,5 +8,5 @@ import type { GeoJsonViewerProps } from "./GeoJsonViewer.types";
8
8
  * Supports feature hover (with customizable content per type) and selection
9
9
  * (single or multi-select with Ctrl/Cmd).
10
10
  */
11
- export declare function GeoJsonViewer({ data, fitBounds, fitBoundsPadding, geoJsonStyle: styleProp, showLayerToggle, height, className, disabled, hoverable, selectable, onHover, onSelect, hoverContent, onCoordinateClick, showCenterAction, getLabel, }: GeoJsonViewerProps): React.JSX.Element;
11
+ export declare function GeoJsonViewer({ data, fitBounds, fitBoundsPadding, geoJsonStyle: styleProp, showLayerToggle, height, className, disabled, hoverable, selectable, onHover, onSelect, hoverContent, onCoordinateClick, showCenterAction, showZoomControls, getLabel, }: GeoJsonViewerProps): React.JSX.Element;
12
12
  export default GeoJsonViewer;
@@ -15,6 +15,8 @@ export interface MapBaseProps {
15
15
  * - `undefined` — auto-detect (visible on touch devices)
16
16
  */
17
17
  showCenterAction?: boolean;
18
+ /** Whether to show the zoom controls. Defaults to `true`. */
19
+ showZoomControls?: boolean;
18
20
  }
19
21
  /**
20
22
  * Common props shared by all map-based picker components
@@ -9,6 +9,8 @@ export interface UseMaplibreMapOptions {
9
9
  onMapClick?: (coord: Coordinate) => void;
10
10
  /** Height of the map container. Defaults to `"400px"`. */
11
11
  height?: string;
12
+ /** Whether to show the zoom controls. Defaults to `true`. */
13
+ showZoomControls?: boolean;
12
14
  }
13
15
  /**
14
16
  * Manages a MapLibre GL map instance.
@@ -22,7 +24,7 @@ export interface UseMaplibreMapOptions {
22
24
  * map event handlers or layers must include `mapReady` in their effect
23
25
  * dependency arrays so those effects re-run once the map is available.
24
26
  */
25
- export declare function useMaplibreMap({ initialCoordinate, disabled, onMapClick, height, }?: UseMaplibreMapOptions): {
27
+ export declare function useMaplibreMap({ initialCoordinate, disabled, onMapClick, height, showZoomControls, }?: UseMaplibreMapOptions): {
26
28
  mapContainerRef: React.RefObject<HTMLDivElement | null>;
27
29
  mapRef: React.RefObject<maplibregl.Map | null>;
28
30
  mapReady: boolean;