pinestreet

Display feature areas

Discussion created by pinestreet on May 24, 2013
Latest reply on May 28, 2013 by aquaforge
I am working on a web app on AGOL that will allow (hopefully) users to calculate the amount of water required to irrigate the landscapes on their properties.  I've successfully uploaded aerial imagery through a map service and created a feature service where users can create features and assign a plant type to them using a drop down menu (turf, trees, pools, xeriscape). 

I am having trouble with the final 2 pieces though.  Once the feature is created and the plant type is chosen, I need the area to be calculated and displayed, ideally in the pop up along with the other attributes. 

Then the real tricky part.  I have a series of simple calculations that have to be performed based on the area and plant type that produce the actual irrigation requirement.  I understand I will have to do this through an API, most likely javascript.  I am a novice when it comes to web development and my javascript skills are very miniscule.  If anyone has any experience with A) displaying the area of a feature in a feature service, and B) embedding code to perform custom calculations, your help would be greatly appreciated.

Thanks and have a good weekend,

Will

Outcomes