pitommasi Report post Posted May 16, 2012 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 Report post Posted May 17, 2012 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