The Analysis / Counting Bundle allows you to count features and display the results in the map.
https://demos.conterra.de/mapapps/resources/apps/downloads_analysis_counting/index.html
Just add the bundle "dn_analysiscounting" to your app.
"dn_analysiscounting": {
"CountingWidgetFactory": {
"whereStoreIds": [
"_AGS_STORE_1447515012761",
"_AGS_STORE_1447515265638",
"_AGS_STORE_1447515368626",
"_AGS_STORE_1469027163329",
"_AGS_STORE_1469027174072",
"_AGS_STORE_1469027182634"
],
"whatStoreIds": [
"_AGS_STORE_1446801354388",
"_AGS_STORE_1469026369117"
]
}
}
Before you can run the project you have to define the mapapps.remote.base property in the pom.xml-file:
<mapapps.remote.base>http://%YOURSERVER%/ct-mapapps-webapp-%VERSION%</mapapps.remote.base>
-
Goal parameters
mvn install -Dmapapps.remote.base=http://%YOURSERVER%/ct-mapapps-webapp-%VERSION%
-
Build properties Change the mapapps.remote.base in the build.properties file and run:
mvn install -Denv=dev -Dlocal.configfile=%ABSOLUTEPATHTOPROJECTROOT%/build.properties