Demo

LocationBox JavaScript Demos

Add Yol

Add:   Remove: 

Instructions

Use the buttons above the map to add or remove.

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 startup() {
  mapper.initMap(41.1, 29.1, 10, IMapper.BASEMAP_POI);
  return;
} 


function add() {
mapper.addYolList("yid_1", "12552559, 12609346");
return;
      } 

function remove() {
mapper.removeRoute("yid_1");
return;
      } 

</script>
				
  <a href="javascript:add()"><img src="images/add.gif" /></a>
  <a href="javascript:remove()"><img src="images/remove.gif" /></a>

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