@foodmarketmaker/mapag 0.0.8 → 0.0.10

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/index.d.ts CHANGED
@@ -291,7 +291,8 @@ declare class MapComponent implements AfterViewInit, OnDestroy {
291
291
  readonly mapper: _angular_core.InputSignal<MapboxMapperGroup<any>>;
292
292
  readonly mapContainer: _angular_core.Signal<ElementRef<any> | undefined>;
293
293
  readonly id: _angular_core.InputSignal<string>;
294
- readonly onMap: _angular_core.OutputEmitterRef<Map$1>;
294
+ readonly onMapReady: _angular_core.OutputEmitterRef<Map$1>;
295
+ readonly mapReady: _angular_core.WritableSignal<Map$1 | undefined>;
295
296
  faPrint: _fortawesome_fontawesome_common_types.IconDefinition;
296
297
  map: maplibregl.Map | undefined;
297
298
  svc: MapService;
@@ -300,11 +301,10 @@ declare class MapComponent implements AfterViewInit, OnDestroy {
300
301
  constructor();
301
302
  ngAfterViewInit(): void;
302
303
  ngOnDestroy(): void;
303
- layerExists(map: Map$1, layerId: string): void;
304
304
  private initializeMap;
305
305
  saveImage(): void;
306
306
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<MapComponent, never>;
307
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<MapComponent, "mapag-map", never, { "mapper": { "alias": "mapper"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; }, { "onMap": "onMap"; }, never, ["*"], true, never>;
307
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<MapComponent, "mapag-map", never, { "mapper": { "alias": "mapper"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; }, { "onMapReady": "onMapReady"; }, never, ["*"], true, never>;
308
308
  }
309
309
 
310
310
  declare class BasemapSelectMenu {
@@ -630,9 +630,9 @@ declare class HardinessMapper implements MapboxMapper {
630
630
  over: _angular_core.WritableSignal<geojson.Feature<geojson.Geometry, geojson.GeoJsonProperties> | null>;
631
631
  settings: _angular_core.WritableSignal<HardinessSettings>;
632
632
  onStyleChange(map: Map$1, svc: MapService): Promise<void>;
633
- constructor();
633
+ constructor(settings?: Partial<HardinessSettings>);
634
634
  create(): Promise<void>;
635
- update(newSettings: HardinessSettings): void;
635
+ update(newSettings: Partial<HardinessSettings>): void;
636
636
  private _update;
637
637
  onReady(map: Map$1, svc: MapService): Promise<void>;
638
638
  reset(): void;
@@ -728,8 +728,8 @@ declare class WatershedMapper implements MapboxMapper {
728
728
  current: Popup | null;
729
729
  currentFeatureID: string | number | undefined;
730
730
  over: _angular_core.WritableSignal<geojson.Feature<geojson.Geometry, geojson.GeoJsonProperties> | null>;
731
- constructor();
732
- update(settings: WatershedSettings): void;
731
+ constructor(settings?: Partial<WatershedSettings>);
732
+ update(settings: Partial<WatershedSettings>): void;
733
733
  private _update;
734
734
  private create;
735
735
  onReady(map: Map$1, svc: MapService): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foodmarketmaker/mapag",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "Angular library for interactive maps with advanced geospatial features",
5
5
  "author": "Food Market Maker",
6
6
  "license": "MIT",