# v3.js

Summary

v3.js |
Constants |
OpenLayers.Layer.Google.v3 | Mixin providing functionality specific to the Google Maps API v3.
DEFAULTS | {Object} It is not recommended to change the properties set here.
Functions |
loadMapObject | Load the GMap and register appropriate event listeners.
setGMapVisibility | Display the GMap container and associated elements.
getMapContainer | {DOMElement} the GMap container’s div

### Constants

### OpenLayers.Layer.Google.v3

Mixin providing functionality specific to the Google Maps API v3.

To use this layer, you must include the GMaps v3 API in your html.

Note that this layer configures the google.maps.map object with the “disableDefaultUI” option set to true. Using UI controls that the Google Maps API provides is not supported by the OpenLayers API.

### DEFAULTS

{Object} It is not recommended to change the properties set here. Note that Google.v3 layers only work when sphericalMercator is set to true.

>     {
>         sphericalMercator: true,
>         projection: "EPSG:900913"
>     }

### Functions

### loadMapObject

> loadMapObject: function()

Load the GMap and register appropriate event listeners.

### setGMapVisibility

> setGMapVisibility: function( | visible | )

Display the GMap container and associated elements.

#### Parameters

visible | {Boolean} Display the GMap elements.

### getMapContainer

> getMapContainer: function()

#### Returns

{DOMElement} the GMap container’s div

> loadMapObject: function()

Load the GMap and register appropriate event listeners.

> setGMapVisibility: function( | visible | )

Display the GMap container and associated elements.

> getMapContainer: function()

{DOMElement} the GMap container’s div
Close