Instances of OpenLayers.Layer.VirtualEarth are used to display the data from the Bing Maps AJAX Control OpenLayers.Layer.VirtualEarth constructor.
OpenLayers. | Instances of OpenLayers.Layer.VirtualEarth are used to display the data from the Bing Maps AJAX Control | Constants | |
MIN_ZOOM_LEVEL | {Integer} 1 | ||
MAX_ZOOM_LEVEL | {Integer} 19 | ||
RESOLUTIONS | {Array(Float)} Hardcode these resolutions so that they are more closely tied with the standard wms projection | ||
Properties | |||
type | {VEMapType} | ||
wrapDateLine | {Boolean} Allow user to pan forever east/west. | ||
sphericalMercator | {Boolean} Should the map act as a mercator-projected map? | ||
animationEnabled | {Boolean} If set to true, the transition between zoom levels will be animated. | ||
Constructor | |||
OpenLayers. | Creates a new instance of a OpenLayers.Layer.VirtualEarth. | ||
Functions | |||
loadMapObject | |||
onMapResize | |||
getWarningHTML | {String} String with information on why layer is broken, how to get it working. | ||
setMapObjectCenter | Set the mapObject to the specified center and zoom | ||
getMapObjectCenter | {Object} The mapObject’s current center in Map Object format | ||
dragPanMapObject | |||
getMapObjectZoom | {Integer} The mapObject’s current zoom, in Map Object format | ||
getMapObjectLonLatFromMapObjectPixel | |||
getMapObjectPixelFromMapObjectLonLat | |||
getLongitudeFromMapObjectLonLat | |||
getLatitudeFromMapObjectLonLat | |||
getMapObjectLonLatFromLonLat | |||
getXFromMapObjectPixel | |||
getYFromMapObjectPixel | |||
getMapObjectPixelFromXY |
{Boolean} Allow user to pan forever east/west. Default is true. Setting this to false only restricts panning if sphericalMercator is true.
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 OpenLayers.Map option restrictedExtent to a meaningful value, e.g.:
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 );
name | {String} |
options | {Object} |
loadMapObject:function()
onMapResize: function()
{String} String with information on why layer is broken, how to get it working.
getWarningHTML:function()
Set the mapObject to the specified center and zoom
setMapObjectCenter: function( center, zoom )
{Object} The mapObject’s current center in Map Object format
getMapObjectCenter: function()
dragPanMapObject: function( dX, dY )
{Integer} The mapObject’s current zoom, in Map Object format
getMapObjectZoom: function()
getMapObjectLonLatFromMapObjectPixel: function( moPixel )
getMapObjectPixelFromMapObjectLonLat: function( moLonLat )
getLongitudeFromMapObjectLonLat: function( moLonLat )
getLatitudeFromMapObjectLonLat: function( moLonLat )
getMapObjectLonLatFromLonLat: function( lon, lat )
getXFromMapObjectPixel: function( moPixel )
getYFromMapObjectPixel: function( moPixel )
getMapObjectPixelFromXY: function( x, y )