ReyhaneMasumi / mapbox-gl-draw-split-polygon-mode

A custom mode for MapboxGL Draw to split polygons
MIT License
24 stars 13 forks source link

I want the split polygon to share this split line instead of gaps. Is there an option to control whether to share #8

Closed LuckDogHu closed 1 year ago

LuckDogHu commented 1 year ago

image

mhsattarian commented 1 year ago

options to control the thickness of the splitting lineString are added now:

draw.changeMode(
  "split_polygon",
  /** Default option vlaues: */
  {
    highlightColor: "#222",
    lineWidth: 0.001,
    lineWidthUnit: "kilometers",
  }
);

these lineWidth* options are passed to [lineOffsetmethod](lineOffset) fromTurf.js`.