title: Android map markers: can the clickable z-ordering be changed?
body: <p>I'm concocting an app that has two different type of markers. The first denotes various locations on the map, the second is a red cross that indicated the lat and long which is given from geocoding an address supplied by the user in a dialog box.</p>
  <p>When you click on the location marker, you get a pop-up window that gives some more data on the location. This doesn't happen with the address marker (the red cross).</p>
  <p>The problem occurs when the geocoded &quot;red cross&quot; marker is on top of a location marker. When you click on the marker, it assumes, because of z-ordering that you want to get the info of the address/red cross marker which of course it can't. What I really want is to show the info associated with the location marker beneath the red cross.</p>
  <p>What I'd really like - and I don't think this is possible? - is to preserve the rendering of the markers z-order, but change the clickable z-ordering of the location markers. In other words, if you click on the location marker, it will deal with that rather than the red cross/address marker which is on top. So it would be acting as if the location marker was on top of the address marker, rather than (visually) the other way round.</p>
  <p>At present my code has the following function:</p>
  <pre><code>    public boolean onMarkerClick(final Marker marker) 
  </code></pre>
  <ul>
  <li>so it treats all markers the same and you have a bit of logic in there that differentiates the red cross from the location markers. Because of the number of markers involved (sometimes several hundred, which refresh and re-render as you pan across the map), I was concerned about the overheads of creating a separate click listener for each marker. I think this would enable you to ignore the click on the &quot;red cross&quot; markers but it would be difficult to refactor the existing code.</li>
  </ul>