diff --git a/examples/bing.html b/examples/bing.html index f53e96414a..ca932e3a4d 100644 --- a/examples/bing.html +++ b/examples/bing.html @@ -12,9 +12,18 @@ diff --git a/lib/OpenLayers/Layer/VirtualEarth.js b/lib/OpenLayers/Layer/VirtualEarth.js index d195b9f78f..5e090e52c3 100644 --- a/lib/OpenLayers/Layer/VirtualEarth.js +++ b/lib/OpenLayers/Layer/VirtualEarth.js @@ -13,7 +13,11 @@ /** * Class: OpenLayers.Layer.VirtualEarth - * + * Instances of OpenLayers.Layer.VirtualEarth are used to display the data from + * the Bing Maps AJAX Control (see e.g. + * http://msdn.microsoft.com/library/bb429619.aspx). Create a VirtualEarth + * layer with the constructor. + * * Inherits from: * - * - @@ -94,6 +98,22 @@ OpenLayers.Layer.VirtualEarth = OpenLayers.Class( /** * Constructor: OpenLayers.Layer.VirtualEarth + * Creates a new instance of a OpenLayers.Layer.VirtualEarth. If you use an + * instance of OpenLayers.Layer.VirtualEarth in you map, you should set + * the option restrictedExtent to a meaningful value, + * e.g.: + * (code) + * var map = new OpenLayers.Map( 'map', { + * // other map options + * restrictedExtent : OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508) + * } ); + * + * var veLayer = new OpenLayers.Layer.VirtualEarth ( + * "Virtual Earth Layer" + * ); + * + * map.addLayer( veLayer ); + * (end) * * Parameters: * name - {String}