Oracle Maps example - Builtin Microsoft Bing Maps tile layer

This demo displays Microsoft Bing Maps as an a built-in map tile layer. You need to apply for a Bing Maps API key and use it in your code as described in the API doc.

Select a map type: Road map Hybrid map Shaded map Arial map

Instructions

IMPORTANT NOTE: To use third party maps as an Oracle Maps tile layer, the map usage of your application must meet the terms of service defined by the map service provider.

To add a Bing Maps tile layer, you need to first load the Bing Maps Javascript API libary into your application web page.

<script charset="UTF-8" type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2">
</script>

Then in your application code, you need to create a MVBingTileLayer object, set your Bing Maps key and add the tile layer to the MVMapView instance.

    baseMap = new MVBingTileLayer() ;
    baseMap.setKey("your_bing_maps_key") ;
    mapview.addMapTileLayer(baseMap);
   
Your application can also invoke the setMapType method to change the map type displayed by the map tile layer.
  <a href="javascript:setMapType(MVBingTileLayer.TYPE_ROAD)">Road map
  <a href="javascript:setMapType(MVBingTileLayer.TYPE_HYBRID)">Hybrid map
  <a href="javascript:setMapType(MVBingTileLayer.TYPE_SHADED)">Shaded map
  <a href="javascript:setMapType(MVBingTileLayer.TYPE_SATELLITE)">Arial map
   
Please refer the API doc for more information on how to use the built-in Bing Maps tile layer class MVBingTileLayer.