How to use the @igo2/geo.FeatureMotion.None function in @igo2/geo

To help you get started, we’ve selected a few @igo2/geo examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github infra-geo-ouverte / igo2 / src / app / pages / portal / toast-panel / toast-panel.component.ts View on Github external
result,
      {
        focused: true,
        selected: true
      },
      true
    );
    this.resultSelected$.next(result);
    const features = [];
    for (const feature of this.store.all()) {
      feature.data === this.resultSelected$.getValue().data ?
        feature.data.meta.style = this.getSelectedMarkerStyle(feature.data) :
          feature.data.meta.style = this.getMarkerStyle(feature.data);
      features.push(feature.data);
    }
    this.map.overlay.setFeatures(features, FeatureMotion.None);

    if (this.zoomAuto) {
      const olFeature = this.format.readFeature(this.resultSelected$.getValue().data, {
        dataProjection: this.resultSelected$.getValue().data.projection,
        featureProjection: this.map.projection
      });
      moveToOlFeatures(this.map, [olFeature], FeatureMotion.Default);
    }

    this.isResultSelected$.next(true);
    this.initialized = false;
  }
github infra-geo-ouverte / igo2-lib / demo / src / app / geo / overlay / overlay.component.ts View on Github external
const feature3: Feature = {
      type: FEATURE,
      projection: 'EPSG:4326',
      meta: {
        id: 3
      },
      properties: {},
      geometry: {
        type: 'Polygon',
        coordinates: [[[-71, 46.8], [-73, 47], [-71.2, 46.6]]]
      }
    };

    this.map.overlay.setFeatures(
      [feature1, feature2, feature3],
      FeatureMotion.None
    );
  }
}