是否有可能使Virtual Earth图钉信息框显示响应来自onclick而不是鼠标悬停?
目前我正在使用这样的东西:
...
var pin = new VEShape( VEShapeType.Pushpin, [location] ); pin.SetCustomIcon(icon_url); pin.SetTitle(title); pin.SetDescription(info_window_template); map.AddShape(pin); document.getElementById(pin.GetPrimitive().iid).onmouseover = EventHandlerOnMouseOver; } var EventHandlerOnMouseOver = function(e) { // Handle content loading... }
...
但是,如果我尝试将onmouseover更改为onclick,则VE会选择onclick并完全禁用信息框.