Question

Before you downvote, let me say that I have searched at least 5 hours in different forums for solutions/hacks and those are the solutions I have tried so far:

  • Calling showInfoWindow() to force the Marker to come to the front
  • Order of addition of Markers to the Map
  • Size of Drawables of Markers

I know there is no Z-Axis values in MarkerOptions/Markers.

The Question: Is there any hack/trick to order the Markers? (Even if we change Markers with clickable Overlays or so...)

Thank you for your help.

EDIT: An example would be:

//Marker B
MarkerOptions mBOptions = objB.getMarkerOptions(); 
//mBOptions has Pos = (1/0) and Icon has a radius 1
Marker markerA = mGoogleMap.addMarker(mBOptions);

//Marker A
MarkerOptions mAOptions = objA.getMarkerOptions(); 
//mAOptions has Pos = (0/0) and Icon has a radius 10
Marker markerB = mGoogleMap.addMarker(mAOptions);

I want to force A to cover the Marker B no matter how I change the position of Marker A. I dont want Marker B to show on top of A.

Was it helpful?

Solution

For future references:

At the end I could NOT find a good solution to my problem besides the points mentioned in the question.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top