Page MenuHomePhabricator

Draw smoothed polygons and lines
Open, LowestPublicFeature

Description

A feature request. When a GeoJSON polygon or line is overlaid on the map, it would be nice to have an option in mapframe to generate a curve from a small number of points rather than a jagged outline - possibly using a spline or Bezier. See example here
https://runkit.com/roblabs/bezier-spline-from-geojson-linestring

Event Timeline

01tonythomas added subscribers: Florian, 01tonythomas.

smoothFactor in lib/external/mapbox/mapbox-lib.js: 8768 can do what we want.

The thing is we find it difficult to make it configurable :-(

MSantos triaged this task as Lowest priority.Sep 25 2018, 3:19 PM
MSantos moved this task from Unsorted to Feature requests on the Maps (Kartographer) board.

I tried playing around a bit with smoothfactor... I think it is absolutely useless for the purpose of this ticket. It appears to me it is really a simplification algo only. A line smoother as described by the ticket author, would have to add points and this never does that. It only reduces points (default level 1, where those points really don't matter).

• Aklapper changed the subtype of this task from "Task" to "Feature Request".Nov 15 2023, 5:20 PM