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

turf clean-coords module

MIT
Latest version published 9 days ago

Package Health Score

98 / 100
Full package analysis

Popular @turf/clean-coords functions