Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

For Android google maps API V2 how do you set zindex of marker?

I'm basically trying to figure out how in a cluster of markers to make a marker become selected without clicking on it? Or bring it to the top? I can't seem to find any API methods for this.

like image 868
Jeffrey Basurto Avatar asked Jan 11 '13 08:01

Jeffrey Basurto


People also ask

How do I change the marker on Google Maps Android?

For adding a custom marker to Google Maps navigate to the app > res > drawable > Right-Click on it > New > Vector Assets and select the icon which we have to show on your Map. You can change the color according to our requirements. After creating this icon now we will move towards adding this marker to our Map.

How do you change the color of a marker on Google Maps?

To edit the marker color, click or tap on the marker icon. When you do that, you can change both the color of the marker and its style. Go for the color or style you want to change and then click OK to see the effect. Click on the button labeled Done to save your new marker color settings.

How do I add markers to Google Maps?

By default, when a user taps a marker, the map toolbar appears at the bottom right of the map, giving the user quick access to the Google Maps mobile app. You can disable the toolbar. For more information, see the guide to controls. This episode of Maps Live covers the basics of adding markers to your map using the Maps SDK for Android.

What are Google markers?

Markers identify locations on the map. The default marker uses a standard icon, common to the Google Maps look and feel. It's possible to change the icon's color, image or anchor point via the API. Markers are objects of type Marker, and are added to the map with the GoogleMap.addMarker(markerOptions) method. Markers are designed to be interactive.

What is the z-index of markers?

Markers are effectively considered to be in a separate z-index group compared to other overlays or shapes (polylines, polygons, circles, and/or ground overlays), regardless of the z-index of the other overlays.

What's new in Google Maps Android API v2?

With Google Maps Android API v2, you can embed maps into an activity as a fragment with a simple XML snippet. The new Maps offer exciting features such as 3D maps; indoor, satellite, terrain, and hybrid maps; vector-based tiles for efficient caching and drawing; animated transitions; and much more. Add a map object.


1 Answers

There aren't any. Unfortunately, Markers in Google Map API V2 for Android do not have z-indices. They handle their own draw order.

like image 80
yarian Avatar answered Nov 15 '22 03:11

yarian