cgxp.plugins.GoogleSource

ptype
cgxp_googlesource
class cgxp.plugins.GoogleSource(config)

Plugin for using Google layers with gxp.Viewer instances. The plugin uses the GMaps v3 API and also takes care of loading the required Google resources.

Available layer names for this source are “ROADMAP”, “SATELLITE”, “HYBRID” and “TERRAIN”

Example Use

The configuration in the sources property of the gxp.Viewer is straightforward:

"google": {
    ptype: "cgxp_google"
}

A typical configuration for a layer from this source (in the layers array of the viewer’s map config option would look like this:

{
    source: "google",
    name: "TERRAIN",
    ref: "google_terrain",
    group: "background"
}

Public Methods

Public methods.

GoogleSource.createLayerRecord()
Parameters:configObject The application config for this layer.
Returns:GeoExt.data.LayerRecord

Create a layer record given the config.

Table Of Contents

Previous topic

cgxp.plugins.GoogleEarthView

Next topic

cgxp.plugins.Help

This Page