This file includes migration steps for each release of CGXP.
GeoMapFish 1.6 uses MapFishPrint version 3. In the configuration of the
cgxp_print
plugin,fields
is removed and should be replaced byadditionalAttributes
andaddCustomItem
. By the way the fields (title and comments) are no longer provided by default and must be described (and translated) in theadditionalAttributes
param.Autoprojection capabilities:
The property
projectionCode
of FullTextSearch plugin is shifted in the MapPanel. For keeping the ability to enter inversed coordinates in the FTS, the MapPanel must owns an appropriate propertyrestrictedExtent
.
In the configuration of
CGXP/widgets/tree/LayerTree.js
rename frienlyUrl to friendlyUrl.In
CGXP/plugins/LayerTree.js
(ptype: "cgxp_layertree"
), parametersthemes
,uniqueTheme
,permalinkThemes
,defaultThemes
,wmsURL
have been moved to the output widget. As a result they must be encapsulated into anoutputConfig
object in the plugin configuration.Editing plugin variable name change:
The variable windowOptions of the plugin Editing is now named attributesWindowOptions, modify your Editing plugin config in the edit.js accordingly.
- 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)] }