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 | bca4d82fcbd7fd1c89c6879eee0a9718699df049 (patch) | |
tree | 9b9407e75068ddfa1e9770df9f9733b375e77bc4 /androidApp/src/main/java/mx | |
parent | 8878254a4a3af9d15262fd2553c7b2db0a7bd8bc (diff) | |
download | etbsa-trackermap-mobile-bca4d82fcbd7fd1c89c6879eee0a9718699df049.tar.gz etbsa-trackermap-mobile-bca4d82fcbd7fd1c89c6879eee0a9718699df049.tar.bz2 etbsa-trackermap-mobile-bca4d82fcbd7fd1c89c6879eee0a9718699df049.zip |
Implemented clustering
Diffstat (limited to 'androidApp/src/main/java/mx')
-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 )) |