Skip to content

AOI Plugin Developer

mbarto edited this page Apr 4, 2013 · 2 revisions

Needed Files

Include in buildjs these files:

  • gxp/src/script/widgets/form/AOIFieldSet.js
  • gxp/src/script/plugins/AOI.js

Configuration Example

{
"ptype": "gxp_aoi",
"id": "aoi",
"outputConfig":{
	 "outputSRS": "EPSG:4326"
 },
 "container": "fieldset",
     "outputTarget": "apppanel"
}
  • ptype: ptype of the plugin
  • outputConfig: specific configuration for the AOIFieldSet widget
    • layerName: name of the layer to use for the box selection (default AOI)
    • decimalPrecision: number of decimal digits used for coordinates (default 5)
    • outputSRS: coordinate system EPSG code to use for output coordinates (default EPSG:4326)
    • infoSRS: flag, display the coordinate system used, with a link to the coordinate system description
    • infoEPSGURL: link to the coordinate system description page (default null)
    • epsgWinWidth: width of the popup window for the coordinate system description (default null)
    • epsgWinHeight: height of the popup window for the coordinate system description (default null)
    • spatialFilterOptions: object with spatial limits for the AOI selection (lonMax, lonMin, latMax, latMin)
    • displayAOIInLayerSwitcher: displays the box selection layer in display switcher (default false)
    • selectStyle: OpenLayers style object for the box selection layer
  • container: either 'fieldset' or 'panel', permits to wrap the AOI widget into a fieldset or a panel
  • outputTarget: plugin target (plugin general configuration)
  • index: index in target (plugin general configuration)
Clone this wiki locally