Demo

LocationBox JavaScript Demos

Add Bing Map

Instructions

Use the "AddBingTileLayer" method with your own Bing API Key to add bing layer to map. Use "RemoveBingTileLayer" method to remove the layer.


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=API&Typ=JS"></script>

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

function startup() {
  mapper.initMap(41.1, 29.1, 6, IMapper.BASEMAP_POI);
  mapper.addNavigationPanel();
  return;
} 

  function add() {
    
    mapper.addBingTileLayer('YOUR BING KEY', true)
    return;
  }
  function remove() {
    mapper.removeBingTileLayer();
    return;
  }
        
Notes

You MUST have Bing Map API Key for this layer.

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