marker

How to hide “Navigation” and “GPS Pointer” buttons when I click the marker on the android google map

笑着哭i 提交于 2019-11-26 15:43:52
问题 When I click the marker on the google map, "Navigation" and "GPS Pointer" buttons come out.How can I hide those two buttons programatically in android development? 回答1: For the button group you have outlined in red, you can disable it using the setMapToolbarEnabled() method in UISettings. From the documentation: Sets the preference for whether the Map Toolbar should be enabled or disabled. If enabled, users will see a bar with various context-dependent actions, including 'open this map in the

Google Maps v2 Marker zOrdering - Set to top

只愿长相守 提交于 2019-11-26 13:10:09
问题 I know there are a few threads around on this topic but i havent yet found a good enough solution. I NEED to place a marker over the top of all other markers. How do i do this? I have tried adding this marker before and after all other markers, however the ordering seems to be from bottom (front) to top (back) on the map view. This is not acceptable as I want to center on a marker which is in front of all markers. I know that Polygons can be zOrdered but I would MUCH prefer a nicely styled

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

How does one implement drag and drop for Android marker?

蓝咒 提交于 2019-11-26 09:26:25
问题 Hi? I am working on a MapView app in Android. I have three markers that I want to be able to use the Google Map API getlocation-function on, later on. In order to try it out I would like to move the marker with a drag and drop-function, and then check the location. Anyone who has gotten a drag and drop to work on an android marker, or know a way to start figuring it out? /AK 回答1: Here is a sample project from one of my books showing drag-and-drop movement of markers on a Google Map in Android