📍 Mastering Map Clustering 5️⃣ with Jetpack Compose: Customised Grouping on Google Maps! 🚀

  Рет қаралды 813

Luca Nicoletti

Luca Nicoletti

Күн бұрын

Пікірлер: 13
@lucanicoletti
@lucanicoletti 10 ай бұрын
Sorry for the low audio quality! Tried my best to fix it in post, but I’m still learning! Next time it will be better!
@jopadjr
@jopadjr 8 ай бұрын
4th... Thanks. Please continue some more Map apps
@hyperfitnz
@hyperfitnz 4 ай бұрын
Great video. I'm doing this without jetpack compose. At the moment if my clusterhandleclick uses GoogleMap to add the items it works but if I leave it for the clustermanager to handle when zooming in the contents of the cluster aren't displayed
@lucanicoletti
@lucanicoletti 4 ай бұрын
Thanks for the comment. I don't really understand what you're trying to achieve, and without looking at the code it would be hard for me to diagnose the problem.
@hyperfitnz
@hyperfitnz 4 ай бұрын
Hey thank you for getting back to me!!! I mean like this ( private fun handleClusterClick(cluster: Cluster) { googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(cluster.position, (googleMap.cameraPosition.zoom + 2)), object : GoogleMap.CancelableCallback { override fun onFinish() { cluster.items.forEachIndexed { index, markerDTO -> val offset = calculateOffset(index) val newPosition = LatLng(cluster.position.latitude + offset.first, cluster.position.longitude + offset.second) val markerOptions = MarkerOptions() .position(newPosition) .title(markerDTO.name) .snippet(markerDTO.snippet) .icon(BitmapDescriptorFactory.fromResource(R.drawable.tools_icon)) googleMap.addMarker(markerOptions) } } override fun onCancel() {} }) }) If I don't do googleMap.addMarker and just let the clustermanager handle it, the markers don't show it just zooms into the cluster but won't like uncuster it. I hope this makes sense? by the way I am using xml and the above code is from one of my fragments.
@lucanicoletti
@lucanicoletti 4 ай бұрын
If you already have clusters and markers on your map you don't need to add them again to the map when handling a click. It's all handled for you. Tapping on a cluster will zoom in and display the markers if the zoom is enough to show them.
@hyperfitnz
@hyperfitnz 4 ай бұрын
@@lucanicoletti thanks for replying dude! I just subd to your channel :) I already read that but for some reason when I don't readd them and I click then it just zooms in on the cluster, like it never unclusters it? Another question please if you don't mind, have you managed to work any buttons in the custom info window?
@lucanicoletti
@lucanicoletti 4 ай бұрын
@@hyperfitnz For the first: the markers need to be at a given distance, perhaps 1 step of zoom is not enough to separate them from the cluster. For the second, I haven't try yet, no, did you face any problems?
@dewetvanrooyen8458
@dewetvanrooyen8458 6 ай бұрын
HI for you next video is it possible to make you screen text with the code bigger!!`?? Thought to follow along.
@lucanicoletti
@lucanicoletti 6 ай бұрын
My latest video should have a bigger font already, give those a try and let me know if that is enough or if I should increase it even more.
@MonichGPT
@MonichGPT 4 күн бұрын
Please post the source code
@lucanicoletti
@lucanicoletti 3 күн бұрын
Currently the source code for this video is in a private repository and can’t be shared.
Coding Will NEVER Be The Same - Insane New AI Code Editor…
12:50
Tech With Tim
Рет қаралды 24 М.
ТЫ В ДЕТСТВЕ КОГДА ВЫПАЛ ЗУБ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 3,8 МЛН
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 209 МЛН
The Singing Challenge #joker #Harriet Quinn
00:35
佐助与鸣人
Рет қаралды 36 МЛН
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 6 МЛН
This is How I Scrape 99% of Sites
18:27
John Watson Rooney
Рет қаралды 172 М.
Android Google Maps with Jetpack Compose 2023
28:15
CodingWithMitch
Рет қаралды 20 М.
The Quest To Make Unbreakable Glass
22:23
Veritasium
Рет қаралды 2,7 МЛН
More with maps in your Android app with Jetpack Compose (Kotlin)
16:08
Google Maps Platform
Рет қаралды 4,7 М.
This Open Source Scraper CHANGES the Game!!!
20:36
Reda Marzouk
Рет қаралды 114 М.
How To Handle Permissions Like A Senior Dev
36:39
Web Dev Simplified
Рет қаралды 96 М.
DHH discusses SQLite (and Stoicism)
54:00
Aaron Francis
Рет қаралды 99 М.
ТЫ В ДЕТСТВЕ КОГДА ВЫПАЛ ЗУБ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 3,8 МЛН