How to use the @terrestris/ol-util/dist/AnimateUtil/AnimateUtil.moveFeature function in @terrestris/ol-util

To help you get started, we’ve selected a few @terrestris/ol-util 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 terrestris / react-geo / src / Button / DigitizeButton / DigitizeButton.tsx View on Github external
}

    if (_isFunction(onFeatureCopy)) {
      onFeatureCopy(evt);
    }

    if (_isFunction(onFeatureSelect)) {
      onFeatureSelect(evt);
    }

    const copy = feat.clone();

    copy.setStyle(this.getDigitizeStyleFunction(feat));
    this._digitizeFeatures.push(copy);

    AnimateUtil.moveFeature(
      map,
      digitizeLayer,
      copy,
      500,
      50,
      this.getDigitizeStyleFunction(feat)
    );
  }