WebApp Builder parcel buffer tool

10-17-2018 05:46 AM
New Contributor II

I have some functionality that I would like to add to my web app and I'm wondering if someone can give me any ideas on the best way to approach it. I want to be able to select a parcel, enter a radius within the buffer tool, and automatically select all the parcels within the given radius. The end goal is to return a PDF with a mailing label for each of the selected parcels.

0 Kudos
4 Replies
New Contributor II

Thanks, Robert. I have the public notifcation widget working for me, but I'm running into a few issues.

First, I want the buffer to start at the edge of the parcel, not the center point. I see that it can be done with the draw tool, but I would rather have the buffer set by default to the selected parcel polygon so that the end user does not have to draw the polygon.

Second, it seems to be returning each page of mailing labels as a separate PDF. I'd like it to have all of them on one PDF if possible.

Any guidance would be much appreciated.

0 Kudos
MVP Emeritus


  Unfortunately neither of those are configurable or something you can change.

0 Kudos
Esri Regular Contributor

Aaron Brown

you can use the same approach specified in the following thread.


Basic steps are as follows:

  • select parcels on your webmap
  • submit a print job
    • if your parcel layer is a feature layer, then print task will include those selected features object-ids in the json (that gets sent to your print service - which is supposed to be arcy based custom service) 
    • if your parcel layer a sublayer of an mapImage (aka dynamic map service) layer, then it will include those features in a separate featureCollection layer (make sure forceFeatureAttributes in JS API 3.24 or older, or 'include attributes' on WAB print widget is set to true/checked)
  • in your arcpy code:
    • in case of feature layer with selection-object-ids, you need to retrieve attributes for those selected parcels by making query request to your service and generate report from the result recordset/featureset as it described in the blog post specified in above mentioned geonet thread.
      ... a sample code can be found here: https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.arcgis.com%2Fhome%2Fitem.html%3Fi... 
    • in case of featureCollection, you need to loop thru all features in the featureCollection layer, read their attributes and generate reports as described in the blog post from above mentioned thread.

pls let me know if you have any question

0 Kudos