cgxp.plugins.StreetView

ptype
cgxp_streetview
class cgxp.plugins.StreetView(config)

Provides two actions for streetviewing in and out.

Example Use

Sample code showing how to add a StreetView plugin to a gxp.Viewer:

new gxp.Viewer({
    ...
    tools: [{
        ptype: 'cgxp_streetview',
        actionTarget: 'center.tbar',
        outputTarget: 'center',
        toggleGroup: 'maptools',
        baseURL: "${request.static_url('<project>:static/lib/cgxp/geoext.ux/ux/StreetViewPanel/')}"
    }]
    ...
});

Don’t mis to add in the html file:

<script type="text/javascript" src='http://maps.google.com/maps?file=api&amp;key=<your key>'></script>

In the jsbuild/app.cfg, add in root:

<project>/static/lib/cgxp/geoext.ux/ux/StreetViewPanel

and in include:

CGXP/plugins/StreetView.js

Config Options

Configuration properties.

actionConfig

Object Config object for the action created by this plugin.

baseURL

The UX base URL.

toggleGroup

The group theses toggle buttons are members of.

Public Methods

Public methods.

StreetView.addActions()

Table Of Contents

Previous topic

cgxp.plugins.ScaleChooser

Next topic

cgxp.plugins.ThemeFinder

This Page