Mango’s calculator popup provides intuitive and rapid interaction with your data.

Map users can search for features and enter their own variables in the popup to run simple pre-configured equations against that feature’s attribute data. The calculator can be used for many cases where the end user has their own key data to analyse against your attribute data. Insurance premiums, property valuation, land tax estimations, and more.

To configure a Calculator popup, open the Layer Panel from your map editor’s side bar and edit the layer you want the calculator to appear on. Navigate to the Popups tab, and select Calculator from the 4 popup types.

The popup wizard will appear. On the first screen, give your popup a title – either text or insert attribute variables from the dataset by clicking on the green + Attribute {v} button.

If you would like to include brief instructions or notes for the end user, enter this in the Description window. Here you can also insert attribute variables from your data.

Finally, set the text you wish to appear on the calculator’s button. Click Next.

Next, create your User Input fields. These fields will be used in the calculation. Now click Next.

The final step of the wizard is the output formatter. Here you design your result and define your equation. Attribute variables, User Input fields, and equations can be inserted using the green buttons.

Insert an equation, and use the Insert Variable button to insert a variable from your dataset, add your equation operators and insert the user input field by pressing the green + Form Field {form_x}. For this example, let’s use {growth_10} and assume for the selected feature {growth_10} equals 0.15.

The equation should look like this:

{user input} + ({user input}*{growth_10})

The inserted equation will be wrapped with #{ }# for the system to process.

#{ {user input} + ({user input}*{growth_10}) }#

See the Calculator Popup in action →

Need more help with this?
✉ Email the Mango support team

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.