studiotrid / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
Apache License 2.0
0 stars 0 forks source link

Single letter marker text is overlapping into other markers for some of the markers #271

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Demo link or sample code:

http://jsfiddle.net/johntrepreneur/L2KYQ/2/

Fiddle clearly shows it. Look in the middle of cluster for problem. Its 
certainly not all of the markers, but some letters have the wrong z-index.

If you look closely, you'll notice that the labels themselves are layering 
correctly, but that layering is not in-tune with their respective marker's 
layering (z-index).

What steps will reproduce the problem?
1. Just plot a cluster of markers with a single text letter, say 100, that are 
close together and some of the labels for them will get the layering (z-index) 
wrong.
2.
3.

Expected result:
Marker text maintains the same z-index as it's parent marker.

Actual result:
[Describe what actually happened]

Version: 1.1.9

Browser / Operating System:
Tested in Chrome v28, FF v23, IE10

Additional comments:
[Enter any additional comments about the bug here.]

*********************************************************
Tip: Star this issue (next to title) to receive notifications of status
changes against this issue, also used as a gauge for how many people are
interested in seeing it resolved.
*********************************************************

Original issue reported on code.google.com by johnriss...@gmail.com on 16 Aug 2013 at 7:03

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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