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_googlesource"
}

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"
}

Table Of Contents

Previous topic

cgxp.plugins.GoogleEarthView

Next topic

cgxp.plugins.Help

This Page

Fork me on GitHub