This mini-tutorial shows up few code examples which allows user to see some specific information about data in select areas.
Link to code examples: Bitbucket link
In BI applications, areas are clickable elements. This means that User can select some features on the map depending on his needs.
All features selected:
Few features selected:
There are few new methods in API to get informations about selected features by code:
Code examples linked above contains ready code with these methods. They can be used in any BI application, all what needs to be done is to put them in customization window while editing the App.
Following methods are implemented in the same way, in each case they are triggered by clicking button "Trigger me!" in sidebar.
Following code finds the ID's of selected features, popups them as UI message and returns them as an array in console.
Developer Tools console output:
Following code returns names of selected features as popup UI message. Method returns selected features in form of geoJSON object. Code above gets only name of features from this object.
This method gets the records from .csv file data of selected features. Code above adds new record called "debt", then assigns custom values to this record and popups it with another record called "year" in UI message.