我使用setHtmlContent设置infoBox的内容。根据文档信息框最初锚定在左上角。如果我移动地图(即使只是一点点),infoBox跳转位置。它在IE8中很好,但在FireFox和Chrome中都有。Bing地图InfoBox在移动地图时在FireFox和Chrome中移动位置
有没有人有任何想法/经验或任何解决方案来解决这个问题?
信息框下面的方法(供参考)加...
var infoboxOptions = { width: 300, height: 150, htmlContent: html, showCloseButton: true, zIndex: 99, offset: new Microsoft.Maps.Point(0, 0), showPointer: true, visible: false };
var location = new Microsoft.Maps.Location(pinArray[i].DPLat, pinArray[i].DPLong)
infobox = new Microsoft.Maps.Infobox(location, infoboxOptions);
然后推到地图中。