google-maps-android-api-2

Android Google Places API - PlaceAutocompleteFragment clear button listener

99封情书 提交于 2020-05-25 04:51:05
问题 I am using Google Places API for Android - PlaceAutocompleteFragment API in my project to search locations, when user selects a location then get the records using location lat-long and display it to ListView. Now the problem is whenever user taps on clear button (X) of PlaceAutocompleteFragment I want clear ListView items for which I need to listen to clear button onClick? How to do that? Any help will be appreciated. autocompleteFragment.setOnPlaceSelectedListener(new PlaceSelectionListener

Does the Google Maps Android API Utility Cluster Manager have a minimum number of markers before it will create a cluster?

白昼怎懂夜的黑 提交于 2020-05-12 11:11:15
问题 I am using the Google Maps Android API Utility Library to enable clustering in my app. When five or more markers are co-located a cluster is created: Four or fewer similarly co-located markers won't create a cluster: Is this by design or am I doing something wrong, because my maps have 2, 3 or 4 markers that clearly overlap, but won't form a cluster? The code to demonstrate the problem: Map layout: <?xml version="1.0" encoding="utf-8"?> <fragment xmlns:android="http://schemas.android.com/apk

Does the Google Maps Android API Utility Cluster Manager have a minimum number of markers before it will create a cluster?

大兔子大兔子 提交于 2020-05-12 11:10:06
问题 I am using the Google Maps Android API Utility Library to enable clustering in my app. When five or more markers are co-located a cluster is created: Four or fewer similarly co-located markers won't create a cluster: Is this by design or am I doing something wrong, because my maps have 2, 3 or 4 markers that clearly overlap, but won't form a cluster? The code to demonstrate the problem: Map layout: <?xml version="1.0" encoding="utf-8"?> <fragment xmlns:android="http://schemas.android.com/apk

Changing colour of Markers - Google Map V2 Android

匆匆过客 提交于 2020-05-09 20:01:10
问题 I'm having a little trouble understanding how to change the colour of a marker in an Android Google Map project. My code for a Marker is: googlemap.addMarker(new MarkerOptions() .position(new LatLng( 65.07213,-2.109375)) .title("This is my title")) .setSnippet("and snippet"); .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_ORANGE))); I get this error when I put in the .icon code on the last line, otherwise the .position , .title and .setSnippet work just fine and are

AndroidRuntime: FATAL EXCEPTION: androidmapsapi-ZoomTableManager

巧了我就是萌 提交于 2020-05-02 14:25:41
问题 My app that uses Google Maps SDK (v2) just started crashing with this exception: Process: com.currentlocation.android, PID: 7328 java.lang.ArrayIndexOutOfBoundsException: length=1; index=12 at com.google.maps.api.android.lib6.gmm6.vector.ct.<init>(:com.google.android.gms.dynamite_mapsdynamite@201216081@20.12.16 (120400-0):9) at com.google.maps.api.android.lib6.gmm6.vector.cv.a(:com.google.android.gms.dynamite_mapsdynamite@201216081@20.12.16 (120400-0):23) at com.google.maps.api.android.lib6

AndroidRuntime: FATAL EXCEPTION: androidmapsapi-ZoomTableManager

淺唱寂寞╮ 提交于 2020-05-02 14:21:29
问题 My app that uses Google Maps SDK (v2) just started crashing with this exception: Process: com.currentlocation.android, PID: 7328 java.lang.ArrayIndexOutOfBoundsException: length=1; index=12 at com.google.maps.api.android.lib6.gmm6.vector.ct.<init>(:com.google.android.gms.dynamite_mapsdynamite@201216081@20.12.16 (120400-0):9) at com.google.maps.api.android.lib6.gmm6.vector.cv.a(:com.google.android.gms.dynamite_mapsdynamite@201216081@20.12.16 (120400-0):23) at com.google.maps.api.android.lib6

AndroidRuntime: FATAL EXCEPTION: androidmapsapi-ZoomTableManager

霸气de小男生 提交于 2020-05-02 14:21:23
问题 My app that uses Google Maps SDK (v2) just started crashing with this exception: Process: com.currentlocation.android, PID: 7328 java.lang.ArrayIndexOutOfBoundsException: length=1; index=12 at com.google.maps.api.android.lib6.gmm6.vector.ct.<init>(:com.google.android.gms.dynamite_mapsdynamite@201216081@20.12.16 (120400-0):9) at com.google.maps.api.android.lib6.gmm6.vector.cv.a(:com.google.android.gms.dynamite_mapsdynamite@201216081@20.12.16 (120400-0):23) at com.google.maps.api.android.lib6