@igo2/integration 21.0.0-next.12 → 21.0.0-next.13

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.
@@ -2243,7 +2243,7 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
2243
2243
  return;
2244
2244
  const vectorLayer = layer;
2245
2245
  const featuresOl = features.map((feature) => {
2246
- return featureToOl(feature, this.map.projection);
2246
+ return featureToOl(feature, this.map.projectionCode);
2247
2247
  });
2248
2248
  const ol = vectorLayer.dataSource.ol;
2249
2249
  ol.getSource().addFeatures(featuresOl);
@@ -2297,7 +2297,7 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
2297
2297
  return;
2298
2298
  const vectorLayer = layer;
2299
2299
  const featuresOl = features.map((feature) => {
2300
- return featureToOl(feature, this.map.projection);
2300
+ return featureToOl(feature, this.map.projectionCode);
2301
2301
  });
2302
2302
  const ol = vectorLayer.dataSource.ol;
2303
2303
  ol.addFeatures(featuresOl);
@@ -2343,7 +2343,7 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
2343
2343
  return;
2344
2344
  const olSource = zoneLayer.dataSource.ol;
2345
2345
  // Convert to OL feature (same way as when adding)
2346
- const featureOl = featureToOl(feature, this.map.projection);
2346
+ const featureOl = featureToOl(feature, this.map.projectionCode);
2347
2347
  // Find matching OL feature(s) by id or geometry
2348
2348
  const toRemove = olSource.getFeatures().filter((f) => {
2349
2349
  return f.getId() === featureOl.getId();
@@ -2463,7 +2463,7 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
2463
2463
  const olSource = layer.dataSource.ol;
2464
2464
  if (buffer)
2465
2465
  olSource.clear();
2466
- const featuresOl = features.map((f) => featureToOl(f, this.map.projection));
2466
+ const featuresOl = features.map((f) => featureToOl(f, this.map.projectionCode));
2467
2467
  const type = this.type();
2468
2468
  if (type !== SpatialFilterType.Predefined) {
2469
2469
  const customType = type === SpatialFilterType.Point ? 'Cercle' : 'Polygone';
@@ -3778,14 +3778,14 @@ class MapProximityState {
3778
3778
  if (!currentPos || !currentPos.position) {
3779
3779
  return;
3780
3780
  }
3781
- coord = olProj.transform(currentPos.position, currentPos.projection, this.map.projection);
3781
+ coord = olProj.transform(currentPos.position, currentPos.projection, this.map.projectionCode);
3782
3782
  this.map.mapCenter$.next(false);
3783
3783
  }
3784
3784
  else {
3785
3785
  coord = this.map.viewController.getCenter();
3786
3786
  this.map.mapCenter$.next(true);
3787
3787
  }
3788
- const coordLonLat = olProj.transform(coord, this.map.projection, 'EPSG:4269');
3788
+ const coordLonLat = olProj.transform(coord, this.map.projectionCode, 'EPSG:4269');
3789
3789
  const roundedCoordLonLat = roundCoordTo(coordLonLat, 6);
3790
3790
  this.currentPositionCoordinate$.next(roundedCoordLonLat);
3791
3791
  const layersToMonitor = layers.filter((layer) => isLayerItem(layer) &&
@@ -3799,7 +3799,7 @@ class MapProximityState {
3799
3799
  const olFeaturesAtCoordinate = layerSource.getFeaturesAtCoordinate(coord);
3800
3800
  if (olFeaturesAtCoordinate && olFeaturesAtCoordinate.length) {
3801
3801
  olFeaturesAtCoordinate.map((olFeatureAtCoordinate) => {
3802
- const featureAtThisPosition = featureFromOl(olFeatureAtCoordinate, this.map.projection);
3802
+ const featureAtThisPosition = featureFromOl(olFeatureAtCoordinate, this.map.projectionCode);
3803
3803
  const title = this.getQueryTitle(featureAtThisPosition, layerToMonitor);
3804
3804
  // todo handle imported layers without querytitle? prompt title or detect first column?
3805
3805
  this.addFeatureToStore(layerToMonitor, coord, featureAtThisPosition, title, 0);
@@ -3812,7 +3812,7 @@ class MapProximityState {
3812
3812
  const closestOlGeom = closestOlFeature.getGeometry();
3813
3813
  if (!closestOlGeom)
3814
3814
  return;
3815
- const closestFeature = featureFromOl(closestOlFeature, this.map.projection);
3815
+ const closestFeature = featureFromOl(closestOlFeature, this.map.projectionCode);
3816
3816
  const geometryClosestPoint = closestOlGeom.getClosestPoint(coord);
3817
3817
  const linebetween = new olLineString([
3818
3818
  coord,