Bing Map not working in Internet Explorer
hi friends,
i facing few problems while working bing maps on internet explorer (all latest versions 7, 8, 9). i am using bing maps ajax contrl v7. i describing here ie9 problems. creating map using following code.
function getmap() {
map = null;
map = new microsoft.maps.map(document.getelementbyid("mapdiv"),{credentials:"credentials removed", maptypeid:microsoft.maps.maptypeid.road,enablesearchlogo: false, enableclickablelogo: false,showcopyright:false});
map.getcredentials(makegeocoderequest);
}
function makegeocoderequest(credentials){
var url = "http://dev.virtualearth.net/rest/v1/locations/" + locationpoint + "?output=json&jsonp=geocodecallback&key=" + credentials;
callrestservice(url);
}
function callrestservice(request)
{
var script = document.createelement("script");
script.setattribute("type", "text/javascript");
script.setattribute("src", request);
document.body.appendchild(script);
}
then had code put pushpins , infoboxes on map in geocodecallback function. displaying bing map inside panel on side of page. on page load though map background getting displayed no positions , pushpins displayed. modified html tag of design page to:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
after pushpin gets displayed on page load when button clicked/other events happen on rest of page , partial postback happens , map throws error:
script65535: unexpected call method or property access.
veapicore.js, line 1 character 45292
the script line throwing error :
f(l){l.blur();
this error being thrown when
map = new microsoft.maps.map line in above code gets executed.
i have seen similar problems posted other people in , stackoverflow forums didn’t solution.
i checked microsoft silverlight add on enabled/disabled. application hosted on iis7 , os windows server 2008.
i need help. can please suggest me solution.
thanks , regards,
gaurav
- edited by tanoshimimoderator wednesday, september 14, 2011 12:48 pm credentials removed.
- moved by ricky_brundrittmicrosoft employee, owner saturday, march 10, 2012 11:22 am (from:bing maps: map control , web services development)
Comments
Post a Comment