In my GWT project I have a map that displays an info window when clicking on one of the user's different markers. Plotted on the map. Once I have a coordinate, mark_codes, I add information like this: Windows:
map.getInfoWindow (). Open (mark_coords, new InfoWindowContent (name + "" + description));
I want to add an icon to the information that is clickable. However, I can not find a document that can be used without using different libraries using Google Maps V1.
If anyone has any suggestions, it will be appreciated!
You can add an XMLView with an image file, and for ImageView. Android: layout_height = "wrap_content" Android: orientation = "vertical" & gt;
& lt; LinearLayout Android: layout_width = "wrap_content" Android: Android: layout_highth = "wrap_content" Android: layout_marginRight = "5dp" Android: adjustViewBounds = "true" Android: src = "@drawable / Android: ic_launcher" /> & Lt; / LinearLayout & gt;
MyInfoWindowAdapter () {myContentsView = getLayoutInflater (). Flowers (R. layout custom_info_content, empty); } @ Override Public View getInfoContents {marker marker} {ImageView imageView = ((ImageView) myContentsView.findViewById (R.id.imageView)) imageView.setOnClickListener (New OnClickListener) {@Override Public Zero Click on (see ARG0) { }}); View my content; } @ Override Public View getInfoWindow (Marker Marker) {// TODO Auto generated method stub returns empty; }}
Finally you can do map.setInfoWindowAdapter (new MyInfoWindowAdapter ());
to make your custom InfoWindow call.
You can see more information.