Webapp builder Edit widget: Merge lines

1511
3
01-15-2016 07:03 AM
Status: Open
VilmantasAlekna1
New Contributor III
Webapp builder Edit widget (also other configurable applications with edit option) has the possibility to enable Merge polygons tool.
There should also be Merge line tool or just Merge tool which will merge selected same geometry features.
3 Comments
AndrzejBieniek

If you have your own API deployed on your server go to the file  (https://js.arcgis.com/3.18/esri/dijit/editing/Editor.js - on your server ) and find:

function(a){return"esriGeometryPolygon"===a.geometryType&&a.visible&&a._isMapAtVisibleScale()}

 

To fix the bug with merging the above must be replaced with:

function(a){return a.geometryType&&a.visible&&a._isMapAtVisibleScale()}

 

 

For some reason Esri is checking if the geometry type is polygon before UNION function is used on the geometry server? WHY???

 

Removed "esriGeometryPolygon"===a.geometryType

 

Everything working as expected.

Hope this helps someone...

JessicaFraver1

Any response from Esri on why line merging functionality has not been added to the Edit widget in webapp builder? Without this functionality we have to look to other options to enable people to use a web app to edit data.

BCTEnterprise

It appears that this has either not yet been resolved, or there is currently a bug with this. I am unable to use the 'union' tool in the Editor widget to merge two line features into a single feature. Anyone have any information on a resolution to this?