@ndwnu/map 1.0.1 → 2.0.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.
@@ -311,13 +311,16 @@ declare abstract class MapComponent implements AfterViewInit, OnDestroy {
311
311
  declare const BOUNDS_NL: [LngLatLike, LngLatLike];
312
312
  declare const BOUNDS_AMERSFOORT: [LngLatLike, LngLatLike];
313
313
  declare const lineWidthFrcSpecification: DataDrivenPropertyValueSpecification<number>;
314
+ type LayerGroup = 'context-map' | 'context-aerial' | 'context-roads' | 'context-admin' | 'context-labels' | 'relevant-roads' | 'relevant-admin';
315
+ type LayerSubGroup = 'administrative-division' | 'background-blue' | 'background-green' | 'background-grey' | 'background-yellow' | 'bgt-housenumbers' | 'brt-place-names' | 'fcd-segments' | 'ndw-nwb-road-sections' | 'nwb-hectometersigns' | 'nwb-oneway-signs' | 'nwb-road-names' | 'railway' | 'wkd-parking-areas';
316
+ interface LayerMetadata {
317
+ group: LayerGroup;
318
+ 'sub-group'?: LayerSubGroup;
319
+ }
314
320
  type NdwLayerSpecification = LayerSpecification & {
315
- metadata: {
316
- group: string;
317
- subGroup: string;
318
- };
321
+ metadata: LayerMetadata;
319
322
  };
320
323
  type NdwLayerFilterFunction = (layer: NdwLayerSpecification) => boolean;
321
324
 
322
325
  export { ApiBackgroundLayer, ApiElement, ApiLayer, ApiSource, BOUNDS_AMERSFOORT, BOUNDS_NL, COMMON_BOUNDS, DEFAULT_MAP_CONFIG, MapComponent, MapElement, MapElementRepository, MapLayer, MapSource, MaplibreCursorService, lineWidthFrcSpecification };
323
- export type { ClickEvent, LayerFilterFunction, MapConfig, MapElementConfig, NdwLayerFilterFunction, NdwLayerSpecification };
326
+ export type { ClickEvent, LayerFilterFunction, LayerGroup, LayerMetadata, LayerSubGroup, MapConfig, MapElementConfig, NdwLayerFilterFunction, NdwLayerSpecification };