Skip to main content

@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

ParameterTypeDescription
layerItemIdstringId of layer item
targetFeatureFeatureFeature that's being targetted
splitFeatureFeatureDrawn feature used to split targetted feature
optionsSplitOptions(Optional) Split options
Returns:

Promise<JsonSplitResult>

Split result containing the created features