Demo

LocationBox JavaScript Demos

Add Weather Report

Add Weather   Remove:  

Instructions

Use the "Add" button to add weather report on the map. Use "Remove" button to remove the layer.

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, 7);
  return;
} 

function add() {
  mapper.addWeatherReport();
  return;
  }

function remove() {
  mapper.removeWeatherReport();
  return;
  }

</script>

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