Class Index

Global Variables

Classes


Class MVBingTileLayer

MVBingTileLayer defines a map tile layer that displays Microsoft Bing map tiles using Bing Maps Javascript API.

To use Bing maps as a map tile layer, your usage of the maps must meet the Terms of Service defined by Microsoft. You must create a Bing Maps Developer Account and create a Bing Maps key for your application before you can display Bing Maps with this class. Please refer to this link for more information about creating Bing Maps Developer Account and aquiring Bing Maps key.

As shown in the following example, in your application, you must call #setKey to set your Bing Maps key right after the MVBingTileLayer object is created.

     var tileLayer = new MVBingTileLayer() ;
     tileLayer.setKey("your Bing Maps key") ;
   

In your application web page, you must use a script tag to import Bing Maps API library as shown below.

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

Class Summary
Constructor Attributes Constructor Name and Description
 
MVBingTileLayer(mapType, key, library)
Field Summary
Field Attributes Field Name and Description
<static> <constant>  
MVBingTileLayer.TYPE_HYBRID
Hybrid map type.
<static> <constant>  
MVBingTileLayer.TYPE_ROAD
Road map type.
<static> <constant>  
MVBingTileLayer.TYPE_SATELLITE
Aerial/Satellite map type.
<static> <constant>  
MVBingTileLayer.TYPE_SHADED
Shaded map type.
Method Summary
Method Attributes Method Name and Description
 
This method gets the current map type, which can be one of the following predefined Bing map styles, VEMapStyle.Road, VEMapStyle.Shaded, VEMapStyle.Aerial and VEMapStyle.Hybrid.
 
setKey(key)
This method sets the Bing Maps key that you've obtained for your application.
 
setMapType(mapType)
This method sets the type of the map, which can be one of the following predefined Bing map styles, VEMapStyle.Road, VEMapStyle.Shaded, VEMapStyle.Aerial and VEMapStyle.Hybrid.
Class Detail
MVBingTileLayer(mapType, key, library)
Parameters:
{mapType} mapType
your bing Maps type.
{key} key
your bing Maps key.
{libURL} library
library URL if it is different from the default bing map library URL.
Returns:
The newly created MVBingTileLayer object.
Field Detail
<static> <constant> MVBingTileLayer.TYPE_HYBRID
Hybrid map type.

<static> <constant> MVBingTileLayer.TYPE_ROAD
Road map type.

<static> <constant> MVBingTileLayer.TYPE_SATELLITE
Aerial/Satellite map type.

<static> <constant> MVBingTileLayer.TYPE_SHADED
Shaded map type.
Method Detail
getMapType()
This method gets the current map type, which can be one of the following predefined Bing map styles, VEMapStyle.Road, VEMapStyle.Shaded, VEMapStyle.Aerial and VEMapStyle.Hybrid.
Returns:
the current map type

{void} setKey(key)
This method sets the Bing Maps key that you've obtained for your application.
Parameters:
{String} key
your Bing Maps key.
Returns:
none

{void} setMapType(mapType)
This method sets the type of the map, which can be one of the following predefined Bing map styles, VEMapStyle.Road, VEMapStyle.Shaded, VEMapStyle.Aerial and VEMapStyle.Hybrid.
Parameters:
{VEMapStyle} mapType
the VEMapStyle constant that specifies the map style.
Returns:
None

Documentation generated by JsDoc Toolkit 2.1.0 on Fri Feb 25 2011 12:34:44 GMT-0500 (EST)