0.5.2 • Published 2 years ago

@mapbox/geojson-rewind v0.5.2

Weekly downloads
363,332
License
ISC
Repository
github
Last release
2 years ago

Build Status

geojson-rewind

The GeoJSON specification is picky about winding order.

This helps you generate compliant Polygon and MultiPolygon geometries. Furthermore it lets you use Canvas and other drawing libraries's default behavior to color the interior rings of Polygon and MultiPolygon features.

Usage

As NPM module:

npm install --save @mapbox/geojson-rewind

As a console utility:

# install
npm install -g @mapbox/geojson-rewind
# use
geojson-rewind foo.geojson

As a browser library: geojson-rewind.js

API

rewind(geojson, clockwise)

Given a GeoJSON FeatureCollection, Feature, or Geometry, return a version with inner and outer rings of different winding orders.

If clockwise is true, the outer ring is clockwise, otherwise it is counterclockwise.

@simosol/mapbox-gl-js-offline@mapcreator/mapbox-gl@everything-registry/sub-chunk-578@langge-data/mapbox-glniosz-osm-to-geojsonmapsi-glmapbox-with-shapesmaplibre-gl-reduce-functionalitiesmaplibre-gl-tdtsdmaplibre-glmaplibre-gl-ashmapbox-glmapbox-gl--custom-stretchmapbox-gl-ahtmapbox-gl-custom-layermapbox-gl-tdtsdmapbox-gl-testmapbox-gl-tultmapbox-gl-mbtilesmapbox-gl-encryptedmapbox-gl-htmapbox-gl-kyemapbox-gl-js-with-shapes@tommy2gis/swsk-mapbox-gl@tssu/mapbox-gl@xll/mapbox-gl@xt-plugins/mapbox-glaccessibletablesaccessibletablesmaps@webdeb/mapbox-gl@xbcx/mapbox-gl@yongju/maplibre-gl@ark-org/map@autoxing/mapbox-glcomments-map@datav-gi/datavgi-gl-js@beyondtracks/nsw-rfs-geojson-feeds@beyondtracks/nsw-rfs-majorincidents-geojson@cczbby/mapbox-gl@cczbby/maplibre-gl@georgedoescode/shapes@geops/maplibre-gl@geomatico/mapbox-gl@geonet/generate-raster-footprint@globalfishingwatch/mapbox-gl@globalfishingwatch/maplibre-glosmtogeojsonp-mapbox-glpetr-maplibre-glpbf-basic-rendervizzuality-mapbox-glvnmapvietmap-glvietmaps-glvisualmappertrackasia-glvtilex-mapbox-glxtal-glxyd-mapbox-glwebgis_sveltekitswsk-mapboxglstrapi-plugin-postgisrif-mapbox-gl@cgcs2000/l7-source@cgcs2000/mapbox-glcheaper-mapbox-gl-with-referrer-policy@inelo/maplibre-gl@dfw810/mapbox-gl@antv/l7-source@emuanalytics/maplibre-gl@freenow/react-polygon-editor@hansdo/maplibre-glanthonyhull-mapbox-glark-map@infinitebrahmanuniverse/nolb-_mapdmap-gl@felix5/mapbox-webgl2@flourish/geo-toolkit@goongmaps/goong-js@koopjs/provider-elasticsearch@krisdages/mapbox-glf-mapbox-gl@jhgrrewq/l7-source@maps-gl/maps-gl@luqh_mapbox/mapbox-gl@mapbox/carmen-private@map-gl-indoor/osmtogeojson@mapgis/mapbox-gl@kantas/vector-js@ogix/mapbox-gl@openaip/openair-parser@openaip/yaixm-to-geojson@porsager/mapbox-gl@placemarkio/osmtogeojson@onthegomap/mapbox-gl@rapideditor/rapid@plotly/mapbox-glkt-maplibre-gl@shitao1988/swsk-mapbox-gl
0.5.2

2 years ago

0.5.1

3 years ago

0.5.0

4 years ago

0.4.1

4 years ago

0.4.0

5 years ago