Questions tagged [android-maps-utils]

Handy extensions to the Google Maps Android API.

This open-source library contains classes that are useful for a wide range of applications using the Google Maps Android API.

91 questions
5
votes
3 answers

How to temporarily disable map marker clustering?

I am using Google Maps V2 for Android together with maps utils extension library for marker clustering. Some parts of app does not need to get clustered markers. Is there any way to forbid clusterManager to cluster markers and after certain…
5
votes
5 answers

how can I make two google maps listeners? setOnCameraChangeListener

How can I create two listeners? One is used for the clustering and the other will load new cluster items to the map if no cluster items exists on the map. //needed for clustering map.setOnCameraChangeListener(mClusterManager); …
4
votes
0 answers

“How to fix ‘NoClassDefFoundError: Could not initialize class com.google.android.gms.common.GooglePlayServicesUtil’ error in Android Robolectric”

I migrated my android project to AndroidX with Android Studio, but now I have an error when I launch my Units tests with Robolectric : 'java.lang.NoClassDefFoundError: Could not initialize class…
Pascal Lzx
  • 91
  • 1
  • 3
4
votes
4 answers

Disable clustering at max zoom level with Googles android-maps-utils

I'm clustering markers on a Google map in Android using the clustering from android-maps-utils. I want to disable the clustering when the map is at it's max zoom level (ie always render individual ClusterItems if the map is at max zoom level,…
4
votes
3 answers

How to disable android map marker click auto center when using clustering?

I know I can avoid centering the camera when tapping a marker using: mGoogleMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() { @Override public boolean onMarkerClick(Marker marker) { marker.showInfoWindow(); …
3
votes
1 answer

ClusterManager from android:android-maps-utils changed and is not retrocompatible

Last Friday my project was running smoothly, Today Monday seems as Google updated android-maps-utils and now the project is full of error ;-( The big problems is in the next line: mMap.setOnCameraChangeListener(mClusterManager); because seems as…
lm2a
  • 835
  • 1
  • 10
  • 19
3
votes
3 answers

Create CameraUpdate from points and padding to show markers nicely

I have a list of LatLng points that I want to show as markers on a GoogleMap. I am currently computing a camera view that fits all of my points the following way: First I compute a LatLngBounds with all my points. Iterator i =…
3
votes
2 answers

Selecting features by onclick in Google Maps Android API

I have developing a map app by using Google Maps Android API. I used Google Maps Android API Utility Library for adding a GeoJSON layer (in polygon geometry). String gj = loadJSONfromAssets(); GeoJsonLayer layer = new GeoJsonLayer(mMap, gj); And…
3
votes
2 answers

Android Get the markers that are not clustered

I'm developing an android application and I'm using Google Maps Android API Utility Library. To be more specific I'm using the cluster part of that library. Now to my question: I'm interested in the markers that are shown on the map but that are…
3
votes
1 answer

Get Markers from ClusterManager

I am using ClusterManager to group the markers in android application. I want to get list of markers and use mClusterManager.getMarkerCollection().getMarkers(); This method returns no markers when we zoom out.and returns markers only when zoom in…
2
votes
0 answers

Create GeoJsonPolygon using android-maps-utils:0.5

I'm using android-maps-utils:0.5 to create GeoJsonPolygon in the following way private GeoJsonFeature createPolygonFeature(List latLngList,String id){ GeoJsonPolygon geoJsonPolygon=new…
Arpan
  • 596
  • 2
  • 10
  • 29
2
votes
1 answer

Render cluster icon from url using google maps utils

I use dynamic icon for each cluster item , so I have special icon url and load marker icon from url . I user following code : override fun onBeforeClusterItemRendered(item: T, markerOptions: MarkerOptions?) { …
2
votes
2 answers

Google Map Accuracy Radius

I use Google Maps for my project. It shows approximate location on a map, surrounded by a blue circle showing the inaccuracy of your position. I want to understand how correctly determined my location. And the question is how to get the radius of…
Daryn
  • 770
  • 9
  • 19
2
votes
1 answer

Can't compile android maps untils anymore

A very uncommon problem occured to me. Everything was perfectly working and all of the sudden I couldn't compile 'com.google.maps.android:android-maps-utils:0.5.+' anymore. I couldn't find a way to fix it, so I updated Android Studio to version…
2
votes
1 answer

How can I set a Google Map Marker back to the default icon after changing it?

I am using the android-maps-utils library with a Google Map in an android app I'm working on, and I have several markers on the map. I change the icons for some markers when certain conditions are met using setIcon() with an IconGenerator. I want to…
Jack Parkinson
  • 681
  • 11
  • 35