Map Machine new user?
Log In
 
 
 


  Avoid 'Click here to activate control' How do I display my newly created map on my website? Create a javascript file containing the function below, it writes the html. Remember to change 'MYFLASHMOVIE' and 'MYCONFIGFILE' with the correct paths (as in the html from the 'Design Map - View Map' tab). InkludĂ©r derefter filen i din side og kald metoden writeMap().
function writeMap(){
 document.open();
 document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'  codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0'  width='100%' height='100%' id='mapViewer' align='middle'>"
 + "<param name='allowScriptAccess' value='always' />"
 + "<param name='movie' value='MYFLASHMOVIE' />"
 + "<param name='flashVars' value='settingsFilePath=MYCONFIGFILE.xml' />"
 + "<param name='quality' value='high' />"
 + "<param name='bgcolor' value='#ffffff' />"
 + "<EMBED src='MYFLASHMOVIE'"
 + "quality='high' bgcolor='#ffffff' width='100%' height='100%' name='mapViewer'"
 + "align='middle' allowScriptAccess='always'
 + "type='application/x-shockwave-flash'"
 + "swliveconnect='true' "
 + "pluginspage='http://www.macromedia.com/go/getflashplayer' flashVars='settingsFilePath= MYCONFIGFILE.xml' > </EMBED>"
 + "</object>");
}
Problem using search function? May be caused by special characters. Be sure to specify the correct encoding in your page header. Copy and paste the html from the 'View Map' page into your own website. This html is created after pressing 'load map'. If you add data to the map, the html will remain the same.