After a crazy Google search, I came up with a solution, and I will share it here so that others can hope that I did not have the grief that I experienced.
, javascript, no sdk iframe. javascript , , asp.net.
setCenter() Bing-, , , . ... . , , . SetCenter, ShowInfoBox, , .
? , sdk, , , , . onendpan, . onchangeview, .
, ... . ?
, , . setTimeout 10 . .
, , , , , , ( - onclick). / " ", , , , .
, , . , / , . , , , .
, , , / setTimeout, , 100 . , .
, , , javascript - , , , , .
, , , , . , :
var myPushPins = [];
var eventPinIndex;
var oldMapCenter;
function ShowPushPin(pinIndex) {
eventPinIndex = pinIndex;
oldMapCenter = map.GetCenter();
map.AttachEvent("onendpan", EndPanHandler);
map.AttachEvent("onchangeview", ChangeViewHandler);
setTimeout("DetectNoMapChange();", 200);
map.SetZoomLevel(9);
map.SetCenter(myPushPins[pinIndex].GetPoints()[0]);
}
function EndPanHandler(e) {
map.DetachEvent("onendpan", EndPanHandler);
setTimeout("map.ShowInfoBox(myPushPins[eventPinIndex]);", 10);
}
function ChangeViewHandler(e) {
map.DetachEvent("onchangeview", ChangeViewHandler);
setTimeout("map.ShowInfoBox(myPushPins[eventPinIndex]);", 10);
}
function DetectNoMapChange(centerofmap) {
if (map.GetCenter().Latitude == oldMapCenter.Latitude && map.GetCenter().Longitude == oldMapCenter.Longitude) {
map.ShowInfoBox(myPushPins[eventPinIndex]);
}
}