infowindow

Opening InfoWindow automatically when adding marker Google Maps v2 Android

倖福魔咒の 提交于 2019-11-26 11:06:29
问题 Is there a way to open the infowindow automatically when we add a marker? Using this code to add the marker but infowindow only opens when clicking the marker: myMap.addMarker(new MarkerOptions() .position(latLng) .title(\"Title\") .snippet(\"Snippet\") .icon(BitmapDescriptorFactory .fromResource(R.drawable.marker))); 回答1: According to the documents of Google Maps for Android V2: An info window allows you to display information to the user when they tap on a marker on a map. By default, an

custom info window adapter with custom data in map v2

蹲街弑〆低调 提交于 2019-11-26 04:40:50
问题 I want to make custom info window adapter in map v2 in android as like below. I have seen below link but doesn\'t get more. 1,2,3, below is my content layout file. <?xml version=\"1.0\" encoding=\"utf-8\"?> <RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\" android:layout_width=\"match_parent\" android:layout_height=\"match_parent\" android:orientation=\"vertical\" > <ImageView android:id=\"@+id/infocontent_iv_image\" android:layout_width=\"150dp\" android:layout

Google Maps Android API v2 - Interactive InfoWindow (like in original android google maps)

和自甴很熟 提交于 2019-11-25 22:26:13
问题 I am trying to a make custom InfoWindow after a click on a marker with the new Google Maps API v2. I want it to look like in the original maps application by Google. Like this: When I have ImageButton inside, its not working - the entire InfoWindow is slected and not just the ImageButton . I read that it is because there isn\'t a View itself but it\'s snapshot, so individual items cannot be distinguished from each other. EDIT: In the documentation (thanks to Disco S2): As mentioned in the