OpenLayers. | |
Constants | |
MIN_ZOOM_LEVEL | {Integer} 0 |
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 | {GMapType} |
sphericalMercator | {Boolean} Should the map act as a mercator-projected map? |
dragObject | {GDraggableObject} Since 2.93, Google has exposed the ability to get the maps GDraggableObject. |
termsOfUse | {DOMElement} Div for Google’s copyright and terms of use link |
poweredBy | {DOMElement} Div for Google’s powered by logo and link |
Constructor | |
OpenLayers. | |
Functions | |
loadMapObject | Load the GMap and register appropriate event listeners. |
setMap | Overridden from EventPane because if a map type has been specified, we need to attach a listener for the first moveend -- this is how we will know that the map has been centered. |
setMapType | The map has been centered, and a map type was specified, so we set the map type on the gmap object, then unregister the listener so that we dont keep doing this every time the map moves. |
onMapResize | |
display | Hide or show the layer |
removeMap | On being removed from the map, also remove termsOfUse and poweredBy divs |
getOLBoundsFromMapObjectBounds | |
getMapObjectBoundsFromOLBounds | |
addContainerPxFunction | Hack-on function because GMAPS does not give it to us |
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 |
dragPanMapObject | |
getMapObjectCenter | {Object} The mapObject’s current center in Map Object format |
getMapObjectZoom | {Integer} The mapObject’s current zoom, in Map Object format |
getMapObjectLonLatFromMapObjectPixel | |
getMapObjectPixelFromMapObjectLonLat | |
getMapObjectZoomFromMapObjectBounds | |
getLongitudeFromMapObjectLonLat | |
getLatitudeFromMapObjectLonLat | |
getMapObjectLonLatFromLonLat | |
getXFromMapObjectPixel | |
getYFromMapObjectPixel | |
getMapObjectPixelFromXY |
setMap: function( map )
Overridden from EventPane because if a map type has been specified, we need to attach a listener for the first moveend -- this is how we will know that the map has been centered. Only once the map has been centered is it safe to change the gmap object’s map type.
map | {OpenLayers.Map} |
removeMap: function( map )
On being removed from the map, also remove termsOfUse and poweredBy divs
map | {OpenLayers.Map} |
getOLBoundsFromMapObjectBounds: function( moBounds )
moBounds | {Object} |
{OpenLayers.Bounds} An OpenLayers.Bounds, translated from the passed-in MapObject Bounds. Returns null if null value is passed in.
getMapObjectBoundsFromOLBounds: function( olBounds )
olBounds | {OpenLayers.Bounds} |
{Object} A MapObject Bounds, translated from olBounds Returns null if null value is passed in
Load the GMap and register appropriate event listeners.
loadMapObject:function()
Overridden from EventPane because if a map type has been specified, we need to attach a listener for the first moveend -- this is how we will know that the map has been centered.
setMap: function( map )
The map has been centered, and a map type was specified, so we set the map type on the gmap object, then unregister the listener so that we dont keep doing this every time the map moves.
setMapType: function()
onMapResize: function()
Hide or show the layer
display: function( display )
On being removed from the map, also remove termsOfUse and poweredBy divs
removeMap: function( map )
getOLBoundsFromMapObjectBounds: function( moBounds )
getMapObjectBoundsFromOLBounds: function( olBounds )
Hack-on function because GMAPS does not give it to us
addContainerPxFunction: 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 )
dragPanMapObject: function( dX, dY )
{Object} The mapObject’s current center in Map Object format
getMapObjectCenter: function()
{Integer} The mapObject’s current zoom, in Map Object format
getMapObjectZoom: function()
getMapObjectLonLatFromMapObjectPixel: function( moPixel )
getMapObjectPixelFromMapObjectLonLat: function( moLonLat )
getMapObjectZoomFromMapObjectBounds: function( moBounds )
getLongitudeFromMapObjectLonLat: function( moLonLat )
getLatitudeFromMapObjectLonLat: function( moLonLat )
getMapObjectLonLatFromLonLat: function( lon, lat )
getXFromMapObjectPixel: function( moPixel )
getYFromMapObjectPixel: function( moPixel )
getMapObjectPixelFromXY: function( x, y )