@kaufmann-lab/ui 0.1.13 → 0.1.14

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.
@@ -7,7 +7,7 @@ import { Overlay, OverlayContainer } from '@angular/cdk/overlay';
7
7
  import { TemplatePortal, ComponentPortal } from '@angular/cdk/portal';
8
8
  import { FocusTrapFactory } from '@angular/cdk/a11y';
9
9
  import { Subscription } from 'rxjs';
10
- import mapboxgl, { Map as Map$1, AttributionControl, LngLatBounds, Marker } from 'mapbox-gl';
10
+ import mapboxgl from 'mapbox-gl';
11
11
 
12
12
  /** Símbolo de trazo "activity" (grilla 24×24) — ver `icons/index.ts` para el registro completo. */
13
13
  const activity = {
@@ -4826,6 +4826,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
4826
4826
  // única forma de resolver el namespace `GeoJSON` que usan los tipos de
4827
4827
  // `mapbox-gl` (`addSource({ type: 'geojson', data: ... })`) sin relajar esa
4828
4828
  // restricción para el resto del archivo.
4829
+ const MapboxMap = mapboxgl.Map;
4830
+ const MapboxMarker = mapboxgl.Marker;
4831
+ const AttributionControl = mapboxgl.AttributionControl;
4832
+ const LngLatBounds = mapboxgl.LngLatBounds;
4829
4833
  // Fix del worker de `mapbox-gl` con bundlers ESM-nativos — ver el JSDoc
4830
4834
  // completo junto a `assignWorkerClass()`, más abajo. `workerClassAssigned`
4831
4835
  // evita reasignar la clase en cada instancia de `<kf-map>`: es una
@@ -5165,7 +5169,7 @@ class MapView {
5165
5169
  this.assignWorkerClass();
5166
5170
  const container = this.containerRef().nativeElement;
5167
5171
  const style = this.resolvedStyle();
5168
- this.map = new Map$1({
5172
+ this.map = new MapboxMap({
5169
5173
  container,
5170
5174
  accessToken: this.mapConfig.accessToken,
5171
5175
  style,
@@ -5518,7 +5522,7 @@ class MapView {
5518
5522
  }
5519
5523
  }
5520
5524
  element.appendChild(iconRef.location.nativeElement);
5521
- const marker = new Marker({ element })
5525
+ const marker = new MapboxMarker({ element })
5522
5526
  .setLngLat(this.toLngLat(markerData.position))
5523
5527
  .addTo(this.map);
5524
5528
  this.markerHandles.push({ marker, iconRef, extraIconRefs });
@@ -5841,7 +5845,7 @@ class MapView {
5841
5845
  activate();
5842
5846
  }
5843
5847
  });
5844
- const marker = new Marker({ element }).setLngLat(coordinates).addTo(this.map);
5848
+ const marker = new MapboxMarker({ element }).setLngLat(coordinates).addTo(this.map);
5845
5849
  this.clusterMarkerHandles.push(marker);
5846
5850
  }
5847
5851
  clearClusterMarkers() {