v3.js | |
Constants | |
OpenLayers. | Mixin providing functionality specific to the Google Maps API v3. |
DEFAULTS | {Object} It is not recommended to change the properties set here. |
Properties | |
animationEnabled | {Boolean} If set to true, the transition between zoom levels will be animated (if supported by the GMaps API for the device used). |
Functions | |
loadMapObject | Load the GMap and register appropriate event listeners. |
repositionMapElements | Waits until powered by and terms of use elements are available and then moves them so they are clickable. |
onMapResize | |
setGMapVisibility | Display the GMap container and associated elements. |
getMapContainer | {DOMElement} the GMap container’s div |
getMapObjectBoundsFromOLBounds | |
getMapObjectLonLatFromMapObjectPixel | |
getMapObjectPixelFromMapObjectLonLat | |
setMapObjectCenter | Set the mapObject to the specified center and zoom |
getMapObjectZoomFromMapObjectBounds | |
getMapObjectLonLatFromLonLat | |
getMapObjectPixelFromXY | |
destroy | Clean up this layer. |
{Object} It is not recommended to change the properties set here. Note that Google.v3 layers only work when sphericalMercator is set to true.
{ maxExtent: new OpenLayers.Bounds( -128 * 156543.03390625, -128 * 156543.03390625, 128 * 156543.03390625, 128 * 156543.03390625 ), sphericalMercator: true, maxResolution: 156543.03390625, units: "m", projection: "EPSG:900913" }
{Boolean} If set to true, the transition between zoom levels will be animated (if supported by the GMaps API for the device used). Set to false to match the zooming experience of other layer types. Default is true. Note that the GMaps API does not give us control over zoom animation, so if set to false, when zooming, this will make the layer temporarily invisible, wait until GMaps reports the map being idle, and make it visible again. The result will be a blank layer for a few moments while zooming.
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()
Waits until powered by and terms of use elements are available and then moves them so they are clickable.
repositionMapElements: function()
onMapResize: function()
Display the GMap container and associated elements.
setGMapVisibility: function( visible )
{DOMElement} the GMap container’s div
getMapContainer: function()
getMapObjectBoundsFromOLBounds: function( olBounds )
getMapObjectLonLatFromMapObjectPixel: function( moPixel )
getMapObjectPixelFromMapObjectLonLat: function( moLonLat )
Set the mapObject to the specified center and zoom
setMapObjectCenter: function( center, zoom )
getMapObjectZoomFromMapObjectBounds: function( moBounds )
getMapObjectLonLatFromLonLat: function( lon, lat )
getMapObjectPixelFromXY: function( x, y )
Clean up this layer.
destroy: function()