Demo

LocationBox JavaScript Demos

Distance Measuring

Add Measuring Tool:  

Instructions
JavaScript API for more information.

Source Code

The Javascript code for the above map 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 add() {
  mapper.addDistanceMeasuringTool();
  return;
  } // add()

function startup() {
  mapper.initMap(41.1, 29.1, 7);
  mapper.addNavigationPanel();
  return;
} 

Download working page
Remember that you need to use your key code as Key attribute.