Demo

LocationBox JavaScript Demos

Print Map

Print the Map:  

Instructions

Use the "Print" button to see the map in a printable format.
See the JavaScript API for more information.

Source Code

The Javascript code for the above function is:

 <script language="Javascript" 
    src="http://www.locationbox.com.tr/locationbox/services?Key=key&Cmd=API
    &Typ=JS"></script>
    
  <script language="JavaScript">
  var mapper  = new IMapper();

  function startup() {
    mapper.initMap(41.1, 29.1, 6);
    mapper.addNavigationPanel();
    return;
  }
  
  
   function print_callback(url) {
    window.open(url, '', '');
    return;
  } 
  
  function print() {
    mapper.print(print_callback, 600, 400);
    return;
  }  
  
    
  </script>
					

Button:

  <a href="javascript:print()"><img src="images/print.gif" border=0></a>
					
Download working page
Remember that you need to use your key code as Key attribute.