Releases: ReyhaneMasumi/mapbox-gl-draw-split-polygon-mode
Releases · ReyhaneMasumi/mapbox-gl-draw-split-polygon-mode
v2.1.0
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 inmapbox-gl-draw
which causes multi-features to have the same properties object and therefor if youuncombine
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
1.0.0 Update README.md