jalvarado91 / 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

MarkerWithLabel : problem of overlapping labels when two markers are in the same position #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
please, Looks this attach file.

Browser / Operating System:
all

*********************************************************
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 webacte...@gmail.com on 16 Jul 2010 at 5:08

Attachments:

GoogleCodeExporter commented 9 years ago
This problem occurs because both labels have the same zIndex in this situation, 
a zindex which is 1 higher than the zindex shared by the markers. This means 
the two labels appear above BOTH markers, causing visual confusion. The 
solution would involve putting the label's div inside the corresponding marker 
div but this is not possible because Google does not provide an API to return 
the marker div.

I don't have a good workaround for you at present. An easy fix would be 
possible if Google provided a method for returning the div used for placing the 
marker on the map.

Original comment by garylitt...@gmail.com on 18 Aug 2010 at 4:53

GoogleCodeExporter commented 9 years ago

Original comment by garylitt...@gmail.com on 7 Dec 2010 at 8:28

GoogleCodeExporter commented 9 years ago
Is there any news to this issue? Or has anyone figured out a workaround for it?

Original comment by filip.en...@gmail.com on 13 Feb 2011 at 10:43

GoogleCodeExporter commented 9 years ago
No easy workaround identified. If Google were to provide a method for returning 
the DIV of the parent marker, the problem could very likely be fixed.

Original comment by garylitt...@gmail.com on 14 Feb 2011 at 1:09

GoogleCodeExporter commented 9 years ago
Has a request about a method to return the marker div been filed in 
gmaps-api-issues? ( http://code.google.com/p/gmaps-api-issues/ )

I have looked around there but haven't found anything about this, Maybe a good 
idea would be to file a request?

Original comment by filip.en...@gmail.com on 3 Mar 2011 at 12:36

GoogleCodeExporter commented 9 years ago
An issue has been filed:

http://code.google.com/p/gmaps-api-issues/issues/detail?id=3094

Original comment by garylitt...@gmail.com on 3 Mar 2011 at 5:58

GoogleCodeExporter commented 9 years ago
This issue cannot be resolved without an API change from Google.

Original comment by garylitt...@gmail.com on 11 Jul 2011 at 4:38

GoogleCodeExporter commented 9 years ago
does it have any solution by now?

Original comment by erikrpi...@gmail.com on 17 Apr 2013 at 8:48

GoogleCodeExporter commented 9 years ago
No resolution yet

Original comment by garylitt...@gmail.com on 18 Apr 2013 at 5:37

GoogleCodeExporter commented 9 years ago
i was thinking in using the zindex and the labelzindex and give values based on 
it up and left positions

ive tested with random values and it seems to work, but i can´t reach the  
exacly formula that would make it possible

Original comment by erikrpi...@gmail.com on 18 Apr 2013 at 6:44

GoogleCodeExporter commented 9 years ago
any ideas?

Original comment by erikrpi...@gmail.com on 20 Apr 2013 at 9:48

GoogleCodeExporter commented 9 years ago
I have looked at this long and hard and I believe the only solution is as 
indicated in #1 above. i.e., an API change is required so that access to the 
DIV containing the marker.

Original comment by garylitt...@gmail.com on 20 Apr 2013 at 10:12

GoogleCodeExporter commented 9 years ago
ok thanks, i´m gonna look around to see if there is an alternative to 
markerwithlabel

Original comment by erikrpi...@gmail.com on 20 Apr 2013 at 11:15

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
As a possible fix you could try setting a z-index and background colour to your 
marker labels. You'll have to set the width of the marker label to match the 
marker itself but gmaps scales it really nicely.

Works well for me.

Original comment by BarryFea...@gmail.com on 7 May 2013 at 10:04

GoogleCodeExporter commented 9 years ago
[deleted comment]