android-maps-v2

Hide markers info window in android google maps API v2

北慕城南 提交于 2020-07-04 10:16:47
问题 Currently I was able to view all my markers in Google maps using Android Google maps API v2. Adding my marker in map: mapView.addMarker (new MarkerOptions() .position(aUsersLocation). icon(BitmapDescriptorFactory.fromBitmap(aUserImage)) .snippet(My_VALUE_1) .title(My_VALUE_2) .hideInfoWindow(); I have several markers and assigned few values (My_VALUE_1 and My_VALUE_2) to each marker's snippet and title. When user clicks a marker, I need these unique value and I will receive these values in

Hide markers info window in android google maps API v2

时光毁灭记忆、已成空白 提交于 2020-07-04 10:14:07
问题 Currently I was able to view all my markers in Google maps using Android Google maps API v2. Adding my marker in map: mapView.addMarker (new MarkerOptions() .position(aUsersLocation). icon(BitmapDescriptorFactory.fromBitmap(aUserImage)) .snippet(My_VALUE_1) .title(My_VALUE_2) .hideInfoWindow(); I have several markers and assigned few values (My_VALUE_1 and My_VALUE_2) to each marker's snippet and title. When user clicks a marker, I need these unique value and I will receive these values in

Adding Google Maps to a RecyclerView

自古美人都是妖i 提交于 2020-07-02 10:50:34
问题 I have added the map view inside the RecyclerView alongside other types of list items but now ... how and where do I initialize the map, where do I listen for onMapReady so that I can place a marker afterwards, and how do I handle the recycling of the item ? Any ideas what the best practice is in this situation ? 回答1: There are tow possibliy do this thing, one is Google Static Maps API using, which will give you the snapshot of the map Another is, you can use com.google.android.gms.maps

How best to re-create markers/polylines when phone is rotated (orientation change)

喜欢而已 提交于 2020-06-09 16:57:06
问题 Background: Developing a native Android App that uses Android Google Map v2, uses android.support.v4.app.FragmentActivity . Runs on Android v2.2. Objective: Retain Markers/Polylines "drawn" on map before the phone orientation is changed. Question(s): Can I "save" the markers/polylines as part of the bundle and simply have them re-displayed by saving them in the onSaveInstanceState using the appropriate savedInstance.put.. methods and then "restore" them in onCreate using the appropriate

AndroidRuntime: FATAL EXCEPTION: androidmapsapi-ZoomTableManager, java.lang.ArrayIndexOutOfBoundsException: length=1; index=12 [duplicate]

扶醉桌前 提交于 2020-05-10 03:42:05
问题 This question already has answers here : AndroidRuntime: FATAL EXCEPTION: androidmapsapi-ZoomTableManager (9 answers) Closed 15 days ago . I have used Google Maps SDK (v2) in my application and today suddenly it started crashing with below crash message: 2020-04-24 02:26:40.874 22678-22758/com.**.**E/AndroidRuntime: FATAL EXCEPTION: androidmapsapi-ZoomTableManager Process: com.**.**, PID: 22678 java.lang.ArrayIndexOutOfBoundsException: length=1; index=12 at com.google.maps.api.android.lib6

Add Android Fragment to InfoWindow Contents

血红的双手。 提交于 2020-05-02 05:08:47
问题 I'm writing an Android application that targets 4.0 and up and I'm using Google Maps v2. I'd like to set the contents of an InfoWindow with a Fragment . Does anyone know if it's possible? My class implements InfoWindowAdapter and here's the relevant code: // // InfoWindowAdapter interface // @Override public View getInfoContents (Marker marker) { LinearLayout layout = new LinearLayout(this.getActivity()); LayoutInflater inflater = (LayoutInflater) this.getActivity().getSystemService(Context

Google maps fails to open in second activity

限于喜欢 提交于 2020-04-30 04:57:04
问题 I'm making an application and ran into a problem. I made separately app for google maps and it worked perfect, and I made second app in which I have listview, and by clicking on item in listview, another activity starts where google maps with different marks opens. So I manage to get another activity running after clicking on separate objects in listview, so I modified that objects .xml and .java file on same principle as I did in my google maps app but somehow it doesn't works. Main_Activity

Google maps fails to open in second activity

江枫思渺然 提交于 2020-04-30 04:54:25
问题 I'm making an application and ran into a problem. I made separately app for google maps and it worked perfect, and I made second app in which I have listview, and by clicking on item in listview, another activity starts where google maps with different marks opens. So I manage to get another activity running after clicking on separate objects in listview, so I modified that objects .xml and .java file on same principle as I did in my google maps app but somehow it doesn't works. Main_Activity

Google maps fails to open in second activity

我与影子孤独终老i 提交于 2020-04-30 04:54:23
问题 I'm making an application and ran into a problem. I made separately app for google maps and it worked perfect, and I made second app in which I have listview, and by clicking on item in listview, another activity starts where google maps with different marks opens. So I manage to get another activity running after clicking on separate objects in listview, so I modified that objects .xml and .java file on same principle as I did in my google maps app but somehow it doesn't works. Main_Activity

Android Java google maps api v2:: how check with markers are within a circle on google maps android api v2

北城以北 提交于 2020-03-06 09:43:51
问题 How to check if markers are present within radius of circle and how to enable only those marker which are present under the area of circle? I used circle option to create circle on map on click of marker. I just want only those markers visible which are inside the circle. $$mMap.setOnMarkerClickListener(new OnMarkerClickListener() { @Override public boolean onMarkerClick(Marker marker) { CircleOptions circle = new CircleOptions(); circle.center(latLng).fillColor(Color.LTGRAY).radius(1000);