UNPKG

mapbox-gl-draw-bezier-curve-mode

Version:

A custom mode for MapboxGL-Draw to draw and edit bezier curves.

16 lines (15 loc) 418 B
import * as Constants from '@mapbox/mapbox-gl-draw/src/constants'; export default function createBezierHandleLine(parentId, coordinates) { return { type: Constants.geojsonTypes.FEATURE, properties: { meta: Constants.meta.LINE_STRING, meta2:"handle-line", parent: parentId, }, geometry: { type: Constants.geojsonTypes.LINE_STRING, coordinates } }; }