@mapgear/geoapps > Drawing > Split
Drawing.Split() method
Splits the feature on the intersects with another (drawn) feature
Signature:Split(layerItemId: string, targetFeature: Feature, splitFeature: Feature, options?: SplitOptions): Promise<JsonSplitResult>;
Parameters
Parameter | Type | Description |
---|---|---|
layerItemId | string | Id of layer item |
targetFeature | Feature | Feature that's being targetted |
splitFeature | Feature | Drawn feature used to split targetted feature |
options | SplitOptions | (Optional) Split options |
Promise<JsonSplitResult>
Split result containing the created features