android-maps-utils

Cannot create Cluster Manager instance( using Google Maps Android API Utility Library)

邮差的信 提交于 2019-12-11 13:36:41
问题 Update:(Problem solved) FInally it is working in my Intellij Idea 13 The problem is that the library was not imported correctly. Go Project Structure , select Modules , add the library as module from an existing source, then click it, it will show Android and check it as Library Module , then it would work Im using Google Maps Android API Utility Library in my app. If i create a GoogleMap instance and move camera to specific location, it works! Code can be found below. Unfortunately if I

Google Maps Cluster Item Marker Icon with Picasso

◇◆丶佛笑我妖孽 提交于 2019-12-11 09:03:41
问题 I'm using Google Map SDK 7.3.0 with android-maps-utils 0.3.4 because I need clusters for my Markers on the map. Ok, so here the problem is, I shouldn't have a red marker. Only green+blue markers. I subclassed DefaultClusterRenderer to create my custom marker view but sometimes it just doesn't work. I'm using picasso to get the green icon because it's coming from an API. But the problem is, when picasso has loaded the bitmap it's too late, the icon has already been set to the default one (red)

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

心不动则不痛 提交于 2019-12-10 03:21:07
问题 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 OnClusterItemClickListener<T extends ClusterItem> { public boolean onClusterItemClick(T item); } Now I would like to let the user know which marker has been clicked . The easies visual feedback would be to change the (color of the) marker icon. A icon can be set via

How to move existing the markers from one position to another with animation

怎甘沉沦 提交于 2019-12-06 13:24:51
问题 I am tracking my employees position on google map what I want to do is to move the marker from its old position to a new position. I am using this library for the cluster marker and the custom marker icons. I want to move the marker from one position to another one, like other apps move their icons like any online cab application Please help me, it's very important for me. 回答1: If you want to move the Marker along with the user interactions on the map something like few Cab Service do, you

How to move existing the markers from one position to another with animation

此生再无相见时 提交于 2019-12-04 20:21:51
I am tracking my employees position on google map what I want to do is to move the marker from its old position to a new position. I am using this library for the cluster marker and the custom marker icons. I want to move the marker from one position to another one, like other apps move their icons like any online cab application Please help me, it's very important for me. user3458008 If you want to move the Marker along with the user interactions on the map something like few Cab Service do, you can refer the below link for the solution : Map style like other Cab Service 来源: https:/

ClusterManager repaint markers of Google maps v2 utils

随声附和 提交于 2019-12-04 08:34:08
问题 Hi Im making a server request and when I received the request 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 (+,-) are showing. Also, I tried to debug the renderer, but onBeforeClusterRendered / onBeforeClusterItemRendered are not called until I update the zoom in map. Any ideas how to refresh map/clusterManager/markers? MarkerManager markerManager = new MarkerManager(map); clusterManager = new

ClusterManager repaint markers of Google maps v2 utils

梦想的初衷 提交于 2019-12-02 22:33:04
Hi Im making a server request and when I received the request 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 (+,-) are showing. Also, I tried to debug the renderer, but onBeforeClusterRendered / onBeforeClusterItemRendered are not called until I update the zoom in map. Any ideas how to refresh map/clusterManager/markers? MarkerManager markerManager = new MarkerManager(map); clusterManager = new ClusterManager<TweetClusterItem>(getActivity(), map, markerManager); clusterManager.setRenderer(new

Are there any advantages of using FusedLocationProviderApi over LocationManager?

时光怂恿深爱的人放手 提交于 2019-11-30 11:31:45
Earlier to get user current location I have used LocationManager: LocationManager locationManager = (LocationManager) getActivity().getSystemService(Context.LOCATION_SERVICE); if (locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) { location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER); } else if (locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER)) { location = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER); } It is easy to read and very straightforward code. But I have noticed that Google recently released New

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

拥有回忆 提交于 2019-11-30 06:39:47
问题 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 problem. The follow part of the question is divided into: What the user was doing What firebase crash reported to me Some project configs What I tried/found trying to understand/fix it What the user was doing He was zooming in and out in a map (

Are there any advantages of using FusedLocationProviderApi over LocationManager?

萝らか妹 提交于 2019-11-29 17:03:17
问题 Earlier to get user current location I have used LocationManager: LocationManager locationManager = (LocationManager) getActivity().getSystemService(Context.LOCATION_SERVICE); if (locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) { location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER); } else if (locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER)) { location = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER); } It