Demo

LocationBox JavaScript Demos

Enable Map Scroll

Add:     Remove:  

Instructions

Use the "Add" button to map drag is enabled. Use "Remove" button to it is disabled.
See the JavaScript API for more information.

Source Code

The Javascript code for the above map is:

<script language="Javascript" 
	src="http://www.locationbox.net/locationboxus/services?
	Key=key&Cmd=APIV2&Typ=JS"></script>

<script language="JavaScript">
var mapper  = new IMapper();

function startup() {
  mapper.initMap(40.6545, -74.0018, 12);
  mapper.addNavigationPanel();
  return;
} 

   function add() {
      mapper.isActiveMapDrag(true);
      return;
    } // add()
    
    function remove() {
      mapper.isActiveMapDrag(false);
      return;
    } // remove()
    
</script>
					

Buttons:


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