How to use the @igo2/geo.FeatureMotion.Zoom 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-lib / packages / context / src / lib / sidenav / sidenav.component.ts View on Github external
zoomToFeatureExtent() {
    if (this.feature.geometry) {
      const olFeature = this.format.readFeature(this.feature, {
        dataProjection: this.feature.projection,
        featureProjection: this.map.projection
      });
      moveToOlFeatures(this.map, [olFeature], FeatureMotion.Zoom);
    }
  }
github infra-geo-ouverte / igo2 / src / app / pages / portal / toast-panel / toast-panel.component.ts View on Github external
handler: () => {
          const olFeature = this.format.readFeature(this.resultSelected$.getValue().data, {
            dataProjection: this.resultSelected$.getValue().data.projection,
            featureProjection: this.map.projection
          });
          moveToOlFeatures(this.map, [olFeature], FeatureMotion.Zoom);
        }
      },
github infra-geo-ouverte / igo2 / src / app / pages / portal / toast-panel / toast-panel.component.ts View on Github external
handler: () => {
          const olFeatures = [];
          for (const result of this.store.all()) {
            const olFeature = this.format.readFeature(result.data, {
              dataProjection: result.data.projection,
              featureProjection: this.map.projection
            });
            olFeatures.push(olFeature);
          }
          moveToOlFeatures(this.map, olFeatures, FeatureMotion.Zoom);
        }
      },
github infra-geo-ouverte / igo2-lib / packages / integration / src / lib / search / search-results-tool / search-results-tool.component.ts View on Github external
zoomToFeatureExtent() {
    if (this.feature.geometry) {
      const olFeature = this.format.readFeature(this.feature, {
        dataProjection: this.feature.projection,
        featureProjection: this.map.projection
      });
      moveToOlFeatures(this.map, [olFeature], FeatureMotion.Zoom);
    }
  }