Demo

LocationBox JavaScript Demos

Add Pulse Animation

Add:     Remove:  

Instructions

Use the "Add" button to add pulse animation points on the map. Use "Remove" button to remove the points. Edit the source code to
add more markers to any other point. See the 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();
  var layer = new ILayer();

  function startup() {
    mapper.initMap(41.1, 29.1, 12);
    mapper.addNavigationPanel(); 
    return;
  } 
  
  function add() {
    var pulse = mapper.createPulseAnimation(null, null, null, 100);
    layer.createVectorCategoryLayer("HASTANE", "hstler", null, true, null, pulse, true);
    return;
  } 
  
  function remove() {    
    layer.removeLayer();
    return;
  }  
    
  </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.