Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify method #41

Open
stefanocudini opened this issue Dec 13, 2017 · 0 comments
Open

Simplify method #41

stefanocudini opened this issue Dec 13, 2017 · 0 comments

Comments

@stefanocudini
Copy link

hi!

great lib!

But I don't understood because the simplify method don't support geojson Linestring instead of a geojson array points, why? How can simplify a Geojson linestring? :o
Usually working with geojson data the polyline is defined as a LineString:

{
   "type": "LineString",
   "coordinates": [
       [12.72, 42.23], [12.34, 42.32], ....
   ]
}

gju.simplify = function (source, kink) { /* source[] array of geojson points */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant