Allow users to enter values and generate calculations based on existing values in your data.
Mango’s calculator popup provides intuitive and rapid interaction with your data.
The calculator popup allows users to click on a feature, open the popup, and enter their own values 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 such as property values to calculate insurance premiums, property valuation growth, land tax estimations, and more.
To configure a calculator popup, open the Layers panel in your map editor, 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 editor.
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} + ( {form_1} * {growth_10} )
The inserted equation will be wrapped with #{ }# for the system to process.
#{ {user input} + ({form_1} * {growth_10}) }#