diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-01-11 04:32:52 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-01-11 04:32:52 -0600 |
commit | 58ddb792fa4b4e3ac6b077111e20805fa091c70d (patch) | |
tree | 9dc69fd4edc0157fda42f82973d6bd53b9eb4320 /androidApp/src/main/java | |
parent | ad1eb729f196701229edea7eb21311cda35cf42c (diff) | |
download | etbsa-trackermap-mobile-58ddb792fa4b4e3ac6b077111e20805fa091c70d.tar.gz etbsa-trackermap-mobile-58ddb792fa4b4e3ac6b077111e20805fa091c70d.tar.bz2 etbsa-trackermap-mobile-58ddb792fa4b4e3ac6b077111e20805fa091c70d.zip |
Implemented clustering
Diffstat (limited to 'androidApp/src/main/java')
-rw-r--r-- | androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt | 10 |
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 )) |