cgxp.plugins.AddKMLFile

ptype
cgxp_addkmlfile
class cgxp.plugins.AddKMLFile(config)

This plugin provides an “Add KML File” button that can be used to add a local KML file to both the 2D map and 3D Google Earth Plugin view (if present). As most browsers do not permit Javascript to read local files, this requires an “echo” service to be running on the server that reflects a file back to the client.

Example Use

Sample code showing how to add an AddKMLFile plugin to a gxp.Viewer is available in the GoogleEarthView plugin.

Config Options

Configuration properties.

actionConfig

Object Config object for the action created by this plugin.

buttonText

String The “add kml” button text (i18n).

echoUrl

String The “echo” service URL.

waitMsgText

String The “wait while loading” message text (i18n).

Table Of Contents

Previous topic

Plugins

Next topic

cgxp.plugins.ContextualData

This Page