AOI Plugin Developer - geosolutions-it/MapStore GitHub Wiki
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 pluginoutputConfig
: specific configuration for the AOIFieldSet widgetlayerName
: 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 descriptioninfoEPSGURL
: 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 paneloutputTarget
: plugin target (plugin general configuration)index
: index in target (plugin general configuration)