aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-01-11 04:32:52 -0600
committerIván Ávalos <avalos@disroot.org>2022-01-11 04:32:52 -0600
commit58ddb792fa4b4e3ac6b077111e20805fa091c70d (patch)
tree9dc69fd4edc0157fda42f82973d6bd53b9eb4320
parentad1eb729f196701229edea7eb21311cda35cf42c (diff)
downloadetbsa-trackermap-mobile-58ddb792fa4b4e3ac6b077111e20805fa091c70d.tar.gz
etbsa-trackermap-mobile-58ddb792fa4b4e3ac6b077111e20805fa091c70d.tar.bz2
etbsa-trackermap-mobile-58ddb792fa4b4e3ac6b077111e20805fa091c70d.zip
Implemented clustering
-rw-r--r--androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt10
1 files changed, 9 insertions, 1 deletions
diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt
index fa0a56e..f87d89a 100644
--- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt
+++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt
@@ -145,13 +145,21 @@ class MapFragment : GlobeMapFragment() {
screenMarker.size = markerSize
screenMarker.userObject = marker.id
screenMarker.selectable = true
+ if (!isReport) {
+ screenMarker.layoutImportance = 1.0f
+ }
screenMarker
}
+ val markerInfo = MarkerInfo()
+ if (!isReport) {
+ markerInfo.setClusterGroup(0)
+ }
+
objects.add(mapControl.addScreenMarkers(
screenMarkers,
- MarkerInfo(),
+ markerInfo,
ThreadMode.ThreadAny
))