We will be sunsetting Advisor during Jan, 2026 and will instead be providing information in Snyk Security DB.

You can begin to take advantage of Snyk Security DB today for a unified, package-centric experience.

How to use the @turf/clean-coords.default function in @turf/clean-coords

To help you get started, we’ve selected a few @turf/clean-coords 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 antvis / L7 / src / source / geojsonSource.js View on Github external
turfMeta.flattenEach(data, (currentFeature, featureIndex) => {
      const coord = getCoords(cleanCoords(currentFeature));
      this.geoData.push(this._coordProject(coord));
      currentFeature.properties._id = featureIndex + 1;
      this.propertiesData.push(currentFeature.properties);
    });
  }

@turf/clean-coords

Removes redundant coordinates from a GeoJSON Geometry.

MIT
Latest version published 2 months ago

Package Health Score

87 / 100
Full package analysis

Popular @turf/clean-coords functions