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

 


wednesday, september 14, 2011 11:43 am

could try sample @ http://www.bingmapsportal.com/isdk/ajaxv7#restservices1. location service & places pushpin. you can copy/paste & create sample page after clicking 'view html' button.
msft
hemant goyal


Bing Maps  >  Bing Maps Web Controls



Comments

Popular posts from this blog

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

Azure DocumentDB Owner resource does not exist

SQL Server 2008 - High Memory Usage