pitommasi

Maps Not Showing In Explorer 8 And 9 (Win 7)

Recommended Posts

I have an application that uses FusionMaps 3.1.

 

Depending on a user interaction, javascript onclick event, the application switches to a different map:

 


this is the onlick event of the links that change the map:

onclick = changeMap ("Europe");
onclick = changeMap ("Asia");
onclick = changeMap ("Africa");

and so on

function changeMap (map) {
var mapswf = "/mapFiles/FCMap_"+ map +".swf";
var bkcol = "#ff0000";
var map = new FusionMaps(mapswf , "MapID", "990", "610", "0", "1",bkcol);
var dataURL = "text.xml";
map.setDataURL(dataURL);
map.setTransparent(true);
map.render("TheMap");
}

 

TheMap is the ID of the DIV that contains the map

 

The problem is thatif you click several times on the different links to change the map, at some point no map is show for a while (a minuto or two) and then it shows up..

Any idea?

Share this post


Link to post
Share on other sites
Guest Sumedh

I have an application that uses FusionMaps 3.1.

 

Depending on a user interaction, javascript onclick event, the application switches to a different map:

 


this is the onlick event of the links that change the map:

onclick = changeMap ("Europe");
onclick = changeMap ("Asia");
onclick = changeMap ("Africa");

and so on

function changeMap (map) {
var mapswf = "/mapFiles/FCMap_"+ map +".swf";
var bkcol = "#ff0000";
var map = new FusionMaps(mapswf , "MapID", "990", "610", "0", "1",bkcol);
var dataURL = "text.xml";
map.setDataURL(dataURL);
map.setTransparent(true);
map.render("TheMap");
}

 

TheMap is the ID of the DIV that contains the map

 

The problem is thatif you click several times on the different links to change the map, at some point no map is show for a while (a minuto or two) and then it shows up..

Any idea?

 

 

 

Hi,

 

Can you please paste your entire sample code and XML code here? so that we can test?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now