Skip to content

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

v2.1.0

15 Nov 07:22
Compare
Choose a tag to compare

In this version, mapbox-gl-draw-passing-mode which this package used underneath is imported internally and there is no need for users to import manually. also, some styles are added so that the selected feature to split is highlighted.

note:
There is an issue in mapbox-gl-draw which causes multi-features to have the same properties object and therefor if you uncombine a multi-feature and try to split one of the pieces the whole multi-feature gets highlighted as the selected feature.

so, more options to control the behavior of the split polygon mode are added:

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

and also, the demo is updated and uses vite to preview during development and build for Github pages.

Full Changelog: v2.0.1...v2.1.0

First stable Release

26 Nov 15:07
8eca86e
Compare
Choose a tag to compare
1.0.0

Update README.md