Select to view content in your preferred language

How to get Geoprocessing Widget to recognize different layer types?

964
3
04-05-2021 11:51 AM
by Anonymous User
Not applicable

Hello,

I have this issue when I add the out-of-box ‘Geoprocessing” widget, it only recognizes a polygon layer type from the webmap. I want the input layers to be able to be Points, Lines and Polygons. Right now the widget only recognizes the polygon features on the webmap.

I believe it is because the Parameter ‘Geometry Type:’ of that input is set to ‘esriGeometryPolygon’. See images below to help clarify question.  Anyone have any ideas ? 

AdamArcichowski_0-1617648674010.png

 

AdamArcichowski_1-1617648674018.png

 

AdamArcichowski_2-1617648674025.png

 

AdamArcichowski_3-1617648674030.png

 

 

Thanks!

0 Kudos
3 Replies
DavidPike
MVP Frequent Contributor

I've got no knowledge of any widget development but is the input not derived from the GP task you've published?  Try changing to Feature Set as your input to the tool before publishing it.

0 Kudos
by Anonymous User
Not applicable

I'll try that 

0 Kudos
by Anonymous User
Not applicable

@DavidPike  

thanks for the reply. Yeah I tried that and it's still only letting me use polygons. 

AdamArcichowski_0-1617652464155.png

 

AdamArcichowski_1-1617652500201.png

I've tried all 4 of these . 

AdamArcichowski_0-1617654301231.png

and the layers option and no dice. 

0 Kudos