Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
[deleted comment]
[deleted comment]
After looking at issue #24, this is slightly different in that, issue #24 is
solving for when the labels are on exactly the same horizontal line. This
overlap is happening when the labels are not horizontally aligned.
Original comment by johnriss...@gmail.com
on 16 Aug 2013 at 8:56
I think it is the same as #24. The underlying markers to which the misbehaving
labels are attached are on the same horizontal line.
Original comment by garylitt...@gmail.com
on 16 Aug 2013 at 9:16
I agree with garylittleRLP. When you inspect the labels and markings that
reveal the overlap issue, the z-index is the same (due markerwithlabel's
z-index + 1 for labels). Without an API change from google, nothing can be
done about this. Marking as duplicate of issue #24.
Original comment by brett.mc...@gmail.com
on 10 Sep 2013 at 5:56
[deleted comment]
I agree with you guys (Brett, Gary) that it is probably the same issue as #24
and that they are on the same horizontal line, but disagree that nothing can be
done to avoid it. I was able to solve the problem by calculating my own z-index
for the markers based on the coordinates before handing them to
MarkerWithLabel. Bottom (or lower on the map) is always in front, and if on the
same horizontal line, then markers to the right are in front. Works great.
MarkerWithLabel could do the same thing internally and save me the work.
Original comment by johnriss...@gmail.com
on 10 Sep 2013 at 6:21
Original issue reported on code.google.com by
johnriss...@gmail.com
on 16 Aug 2013 at 7:03Attachments: