Closed GoogleCodeExporter closed 9 years ago
I think the problem is in this line:
google.maps.Marker.set(marker.labelVisible, true);
It should be:
google.maps.Marker.set("labelVisible", true);
Gary
Original comment by garylitt...@gmail.com
on 9 Dec 2010 at 10:15
On further analysis, the new line should be:
marker.set("labelVisible", true);
The code you're using to attach the listener looks a bit convoluted so there
may be other problems as well... or maybe not!
Original comment by garylitt...@gmail.com
on 9 Dec 2010 at 10:29
Thanks Gary! Your second suggestion was right on the nose!
Original comment by angiek...@gmail.com
on 10 Dec 2010 at 1:42
Closed. This was not a bug in MarkerWithLabel.
Original comment by garylitt...@gmail.com
on 11 Dec 2010 at 8:28
I think this issue came back. I'm not able to set up "lableVisible"
dynamically. I noticed that the setting of "labelVisible" works until late 2013
release but doesn't work with 2014 releases. Any input on this would help.
Original comment by param8...@gmail.com
on 13 May 2014 at 6:24
The property is called "labelVisible" not "lableVisible".
Original comment by g...@garylittle.ca
on 13 May 2014 at 6:18
I'm on:
@name MarkerWithLabel for V3
@version 1.1.10 [April 8, 2014]
and I feel so stupid, because I don't see what I'm doing wrong. This code
alerts all labels, but does not hide them. Why?
function hideLabels() {
for (i = 0; i < markers.length; i++) {
alert(markers[i].labelContent);
markers[i].set("labelVisible", false)
}
}
Original comment by per.g...@gmail.com
on 5 Sep 2014 at 3:35
Original issue reported on code.google.com by
angiek...@gmail.com
on 9 Dec 2010 at 9:32