The event click can not be triger,but the code was execute normally
var caption = new ELabel(latlng,Options.labelStyle,overlay)
GEvent.addListener(caption, "click", function()
{
alert("ddfd")
});
...............................................
the code ELabel
function ELabel(latlng, caption, bordercolor, borderwidth,
borderstyle, fontcolor, fontsize, fontweight, backbroundcolor,
classname, pixelOffset, percentOpacity, overlap)
{
this.latlng = latlng;
this.caption = caption;
this.bordercolor = bordercolor;
this.borderwidth = borderwidth + "px";
this.borderstyle = borderstyle;
this.fontcolor = fontcolor;
this.fontsize = fontsize + "px";
this.fontweight = fontweight;
this.backbroundcolor = backbroundcolor;
// Optional parameters
this.classname = classname||"";
this.pixelOffset = pixelOffset||new GSize(0,0);
if (percentOpacity)
{
if(percentOpacity < 0)
{percentOpacity = 0;}
if(percentOpacity > 100)
{percentOpacity = 100;}
}
this.percentOpacity = percentOpacity;
this.overlap = overlap||false;
}
ELabel.prototype = new GOverlay();
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---