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!
@jopadjr8 ай бұрын
4th... Thanks. Please continue some more Map apps
@hyperfitnz4 ай бұрын
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
@lucanicoletti4 ай бұрын
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.
@hyperfitnz4 ай бұрын
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.
@lucanicoletti4 ай бұрын
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.
@hyperfitnz4 ай бұрын
@@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?
@lucanicoletti4 ай бұрын
@@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?
@dewetvanrooyen84586 ай бұрын
HI for you next video is it possible to make you screen text with the code bigger!!`?? Thought to follow along.
@lucanicoletti6 ай бұрын
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.
@MonichGPT4 күн бұрын
Please post the source code
@lucanicoletti3 күн бұрын
Currently the source code for this video is in a private repository and can’t be shared.