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
69
votes
11 answers

IllegalArgumentException: Unmanaged descriptor using gms.maps.model.Marker.setIcon

I have an app that use android-maps-utils and glide for marker icons. I got an error report using Firebase crash reporting which I can't track in source code because gms.maps.model.Marker.setIcon is private, so I'm asking for some help with this…
MiguelHincapieC
  • 5,445
  • 7
  • 41
  • 72
21
votes
8 answers

ClusterManager repaint markers of Google maps v2 utils

I'm making a server request and when I receive the response from server, I'm executing on UI Thread a ClusterManager.addItem() but this items are not painting in the map, only when I make a zoom update (+,-) newly added items starts appearing. I…
PaNaVTEC
  • 2,505
  • 1
  • 23
  • 36
18
votes
1 answer

Adding new markers on map using cluster manager doesn't reflect the changes until I zoom in and zoom out the map

When I add new markers on the map programmatically using cluster manager it doesn't reflect the changes until I update the zoom in and zoom out. I have seen lots of questions on stack overflow but that doesn't work for me, So please tell me how to…
16
votes
3 answers

Are there any advantages of using FusedLocationProviderApi over LocationManager?

Earlier to get user current location I have used LocationManager: LocationManager locationManager = (LocationManager) getActivity().getSystemService(Context.LOCATION_SERVICE); if (locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) { …
12
votes
4 answers

Android cluster and marker clicks

I'm using the android clustering utility on a map and succesffuly implemented an onclick listener with mClusterManager.setOnClusterItemClickListener() for all the markers handled by the clustering library. Because I also want some markers to always…
tio oit
  • 193
  • 1
  • 1
  • 10
9
votes
3 answers

Google maps custom marker icon with clustering on Android

I have implemented the code of Google Maps Clustering This is the code in my activity private void setUpClusterer() { mClusterManager = new ClusterManager(this, mMap); mMap.setOnCameraChangeListener(mClusterManager); …
8
votes
2 answers

What exactly are "levels" in polyline encoding/decoding?

What are "levels" in polyline encoding/decoding, and exactly how do they relate to map zoom levels in Google Maps API v3 or Android Maps API v2? The only description I can find is from the Interactive Polyline Encoder Utility: Polylines in Google…
8
votes
3 answers

How to change the clicked marker icon using android-maps-utils?

In my Android project I am using the android-maps-utils library to apply clustering to a bunch of markers on a map view. Whenever a marker is clicked I get notified via onClusterItemClick so I can do some action. public interface…
JJD
  • 50,076
  • 60
  • 203
  • 339
7
votes
0 answers

Could not allocate dup blob fd : IconGenerator with thousand markers causes exception

My app have 1,5 thousand markers, showed throught marker clustering. Actually it works fine with default markers, but i want do use vector bitmap and render markers with text (price of gas station), like this: Before finishing rendering markers,…
Itapox
  • 579
  • 1
  • 7
  • 25
6
votes
1 answer

Add a geojson file to my Map in Android App

I'm very new to anything about Android studio and Java. I try to make an map App with some points of interest. The points is a geojson file. I read the example of google and the explanation in their web site (Google Maps Android GeoJSON Utility) but…
Vassilis
  • 341
  • 1
  • 8
  • 22
6
votes
2 answers

ClusterManager setOnCameraIdleListener

While trying to implement use ClusterManager, I noticed that the getMap().setOnCameraChangeListener(clusterManager) is deprecated. Looking at the android-maps-utils sample on Github, I noticed that…
Kamy
  • 586
  • 4
  • 18
6
votes
1 answer

Changing clustermanager item icon in android google maps

I have a google maps in my android app. It is full of markers, it clusters the markers... in a few words, a fully usable map. What i want to do it's simple. When user tap on clusterItem, I want to change the icon to a selected one. (simply, same…
Javier Sivianes
  • 784
  • 1
  • 9
  • 25
5
votes
0 answers

java.lang.RuntimeException: createContext failed: 12291 on real devices

on crashlytic dashboard I can see lots of crashes on various devices - samsung, motorola, sony etc operating system - Android 4, 5, 6. Fatal Exception: java.lang.RuntimeException createContext failed:…
Pr38y
  • 1,565
  • 13
  • 21
5
votes
3 answers

Google map Android API v2 - InfoWindow on polyline?

I am drawing polyline on my map,I need to show some data to user now. How I can draw text or InfoWindow on each polyline ? I add polyline like : ArrayList points = null; PolylineOptions lineOptions = null; MarkerOptions markerOptions = new…
user4813855
5
votes
1 answer

Google Map vs. Cluster Manager: onCameraChangeListener deprecated

I've got an Android app with about 500-1000 markers. I am using the ClusterManager from the android-maps-utils as shown here to cluster these markers. In the latest Play Services update Google changed the listener model of the Google Map. The…
1
2 3 4 5 6 7