This file includes migration steps for each release of CGXP.
- In the
CGXP/plugins/ContextualData.js
fix the typo from wsg to wgs, used in the tpls attribute.
- Rename
CGXP/plugins/FeatureGrid.js
toCGXP/plugins/FeaturesGrid.js
(present injsbuild/app.cfg
) and itsptype
fromcgxp_featuregrid
tocgxp_featuresgrid
(present in theviewer.js
) for name consistency. - Add new
themes
argument to the plugincgxp_featuresgrid
to be able to display the Identifier Attribute on the drawn features. - Refactor
CGXP/plugins/FullTextSearch.js
into a plugin and widgetCGXP/widgets/FullTextSearch.js
. Configuration of the plugin has changed, now there is widgetOptions for configuration of the widget.
- Patch OpenLayers in the camptocamp repository, don't miss to do git submodule sync.
For consistency reasons, plugins with action configuration have been modified to rename their
options
parameter toactionConfig
. Please make sure to update your plugins configurations accordingly.Former CGXP plugin
SwitchableWMTSSource
has been removed and replaced by an OpenLayers addin,OpenLayers.Layer.SwitchableWMTS
, combined to a standardOLSource
. Here is an example of the new syntax to use:{ source: "olsource", type: "OpenLayers.Layer.SwitchableWMTS", group: 'background', args: [Ext.applyIf({ name: OpenLayers.i18n('relief'), mapserverLayers: 'relief_raster', queryLayers: [], zoomThreshold: 11, ref: 'relief', layer: 'dtm_av_relief_02m', params: {'time': '200703'}, group: 'background' }, WMTS_OPTIONS)] }