Print 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=APIV2
&Typ=JS"></script>
<script language="JavaScript">
var mapper = new IMapper();
function startup() {
mapper.initMap(41.1, 29.1, 6);
mapper.addNavigationPanel();
return;
}
function print() {
mapper.print();
return;
}
</script>
Button:
<a href="javascript:print()"
><img src="images/print.gif" border=0></a>
Download working pageRemember that you need to use your key code as Key attribute.