|
1 | 1 | # Migration Guide |
2 | 2 |
|
3 | | -## Migration to Mapbender 3.3 |
4 | | - |
5 | | -Check the [Mapbender Update process](https://doc.mapbender.org/en/installation/update.html). |
6 | | - |
7 | | -* Make sure you have PHP >= 7.4 or PHP 8.x |
8 | | -* Provide a backup of your database. |
9 | | -* Update your database schema to 3.3 with app/console doctrine:schema:update --force |
10 | | -* config.yml: Pleas note that in the doctrine connection configuration variables must be set with quotes for example '%database_driver%' |
11 | | -* CAUTION: Please note that the eye at application is from (3.2.x) used to make the application available for the anonymous user (public access). Before the eye /checkbox at security was used to publish an application. |
12 | | - |
13 | | -To update from 3.2.x to 3.3.x should be quite easy. |
14 | | - |
15 | | -If you update from a version < 3.2 you have to follow the steps described at section "Migration to Mapbender 3.2" |
16 | | - |
17 | | -### New feature |
18 | | - |
19 | | -#### Styling |
20 | | - |
21 | | - |
22 | | -Styling is now possible via variables that can be passed to your application. |
23 | | - |
24 | | -* Mapbender https://github.com/mapbender/mapbender/blob/master/src/Mapbender/CoreBundle/Resources/public/sass/libs/_variables.scss |
25 | | -* Create your own scss file see for example https://github.com/mapbender/mapbender-workshop/tree/master/src/Workshop/DemoBundle/Resources/public/demo_variables_blue.scss |
26 | | -* Modify your template - add function getSassVariablesAssets and refer to your scss file see for example https://github.com/mapbender/mapbender-workshop/blob/master/src/Workshop/DemoBundle/Template/DemoFullscreen.php#L23 |
27 | | - |
28 | | - |
29 | | -#### Sketch |
30 | | - |
31 | | -* Sketch now supports to draw a circle with a defined radius. You draw the circle first and den edit the circle and define a radius. |
32 | | -* Sketch now allows to define colors to be offered to draw. You can also activate a color picker |
33 | | - |
34 | | - |
35 | | -#### FeatureInfo |
36 | | - |
37 | | -* featureInfo Highlight now allows to style the fill and stroke and opacity |
38 | | - |
39 | | - |
40 | | -## Migration to Mapbender 3.2 |
41 | | - |
42 | | -You can migrate older Mapbender installations to Mapbender 3.2. |
43 | | - |
44 | | -Check the [Mapbender Update process](https://doc.mapbender.org/en/installation/update.html). |
45 | | - |
46 | | -* Make sure you have PHP >= 7.1.0 and PHP < 8 |
47 | | -* Provide a backup of your database. |
48 | | -* Update your database schema to 3.2 with app/console doctrine:schema:update --force |
49 | | -* CAUTION: Please note that the eye at application is from (3.2.x) used to make the application available for the anonymous user (public access). Before the eye /checkbox at security was used to publish an application. |
50 | | - |
51 | | -Some elements may not work after the update and need a closer look. |
52 | | - |
53 | | -### Update map_engine_code |
54 | | - |
55 | | -If it makes sense update all applications to map_engine_code cureent. |
56 | | - |
57 | | - Update mb_core_application set map_engine_code = 'current'; |
58 | | - |
59 | | - |
60 | | -### SearchRouter |
61 | | - |
62 | | -You find a demo at https://github.com/mapbender/mapbender-workshop/blob/release/3.2/app/config/applications/mapbender_demo_nrw.yml |
63 | | - |
64 | | -1. deprecated empty: use placeholder instead |
65 | | - |
66 | | -2. For text and choice you have to define the full class-path. |
67 | | - |
68 | | -You also find information at https://github.com/mapbender/mapbender/wiki/Best-practices:-form-types#inversion-of-choices |
69 | | - |
70 | | -You can update the configuration with the following SQL. |
71 | | - |
72 | | - Update mb_core_element set configuration = |
73 | | - replace(configuration,'s:6:"choice"','s:53:"Symfony\Component\Form\Extension\Core\Type\ChoiceType"') |
74 | | - where class = 'Mapbender\CoreBundle\Element\SearchRouter'; |
75 | | - |
76 | | - Update mb_core_element set configuration = |
77 | | - replace(configuration,'s:4:"text"','s:51:"Symfony\Component\Form\Extension\Core\Type\TextType"') |
78 | | - where class = 'Mapbender\CoreBundle\Element\SearchRouter'; |
79 | | - |
80 | | - Select configuration from mb_core_element where class = 'Mapbender\CoreBundle\Element\SearchRouter'; |
81 | | - |
82 | | - |
83 | | -3. For choice: Please not that key or value are passed flipped that means value and the key- see also https://github.com/mapbender/mapbender/wiki/Best-practices:-form-types#inversion-of-choices |
84 | | - |
85 | | - choices: |
86 | | - Bonn - this is the value not the key: Bonn |
87 | | - Cologne - this is the value not the key: Cologne |
88 | | - Siegburg - this is the value not the key: Siegburg |
89 | | - |
90 | | - |
91 | | -### SimpleSearch |
92 | | - |
93 | | -SimpleSearch element was improved. You can now define the projection of the result that comes from the Solr Service. Mapbender will then transform the result to the projection of the map. |
94 | | - |
95 | | -SimpleSearch Supports Nominatim, Photon from version 3.2.5 - see workshop demo applications |
96 | | - |
97 | | - |
98 | | -1. Define sourceSrs in your SimpleSearch definition. If not defined the default ('EPSG:4326') be be choosen. You find an example at https://github.com/mapbender/mapbender-workshop/blob/release/3.2/app/config/applications/mapbender_demo_nrw.yml |
99 | | - |
100 | | - sourceSrs: 'EPSG:25832' |
101 | | - |
102 | | -2. query_ws_replace: From version 3.2.8 on set query_ws_replace or modify the code as described in https://github.com/mapbender/mapbender/issues/1391#issuecomment-968645508 |
103 | | - |
104 | | - query_ws_replace: + |
105 | | - |
106 | | - |
107 | | - |
108 | | -### BaseSourceSwitcher |
109 | | - |
110 | | -Please note that on start of an apllication all WMS are activated where the root-Layer is activated. |
111 | | - |
112 | | -Before 3.2 it was possible to activate all Basesource and only the first WMS was visible on start. |
113 | | - |
114 | | - |
115 | | -### Template / CSS |
116 | | - |
117 | | -CSS change and there will be a big redesign in the backend and frontend in the upcoming versions. |
118 | | - |
119 | | -* Check the workshop Bundle for the changes |
120 | | -* Define your template as desktop-template |
121 | | - |
122 | | - |
123 | | -### Digitizer |
124 | | - |
125 | | -Digitizer is available for Mapbender >= 3.2.2. The new Digitizer Version is 1.4. Some functionality is not updated to 1.4 already (f.e. cluster). |
126 | | - |
127 | | -* see list of deprecated features https://github.com/mapbender/mapbender-digitizer/releases/tag/1.4 |
128 | | -* see also https://github.com/mapbender/mapbender-digitizer/blob/1.4/Element/Digitizer.php |
129 | | -* you find a demo in the workshop bundle https://github.com/mapbender/mapbender-workshop/blob/release/3.2/app/config/applications/mapbender_digitize_demo.yml |
130 | | -* maxResults - is supported again to limit the number of features that are loaded to the application (if not defined all features will be used) (digitizer >=1.4.9) |
131 | | -* font definitions see https://github.com/mapbender/mapbender/issues/1308 |
132 | | - - fontSize: 38 definition without px |
133 | | - - labelxOffset: 18 (not supported in 3.2.3) |
134 | | - - labelYOffset: 18 (not supported in 3.2.3) |
135 | | -* types that are not supported in 3.2.4 |
136 | | - - https://doc.mapbender.org/en/functions/editing/digitizer.html |
137 | | - - upload |
138 | | - - select with multiselect |
139 | | - - coordinates |
140 | | -* clustering not implemented in 3.2.x |
141 | | -* style definition is limited not all OL2 styles can be defined |
142 | | -* Support styling features with icons (interpret externalGraphic, graphicWidth, graphicHeight properties) (Mapbender >=3.2.7) |
143 | | -* Support data placeholder syntax in externalGraphic (e.g. "/bundles/projectbundle/images/${type}.png") (Mapbender >=3.2.7) |
144 | | -* Save NULL for empty fields works for int/float/decimal columns but not for double precision (Mapbender >= 3.2.6 https://github.com/mapbender/mapbender/issues/1355) |
145 | | -* Save NULL for empty fields for text fields does not work. Mapbender saves '' instead (https://github.com/mapbender/mapbender/issues/1385) |
146 | | -* supports printable: true |
147 | | - |
148 | | - |
149 | | -There is a new style unsaved. |
150 | | - |
151 | | - unsaved: |
152 | | - strokeWidth: 3 |
153 | | - strokeColor: "#f0f0f0" |
154 | | - fillColor: "#ffff" |
155 | | - fillOpacity: 0.5 |
156 | | - pointRadius: 6 |
157 | | - label: 'Neu - bitte speichern' |
158 | | - fontColor: red |
159 | | - fontFamily: 'Arial, Courier New, monospace' |
160 | | - fontColor: red |
161 | | - fontSize: 38 |
162 | | - fontWeight: bold |
163 | | - |
164 | | - |
165 | | -### WMS Layer visibility |
166 | | - |
167 | | -Make sure that your WMS provides a proper extent for all supported EPSG-codes (this is used and saved in table mb_wms_wmslayersource Spalten latlonbounds und boundingboxes). |
168 | | -Else it can happen, that a layer is not requested for the given extent of your map. |
169 | | - |
170 | | -### Sketch |
171 | | - |
172 | | -Redlining was renamed to Sketch (>= 3.2.3) |
173 | | - |
174 | | - Update public.mb_core_element set class = 'Mapbender\CoreBundle\Element\Sketch', |
175 | | - title = 'mb.core.sketch.class.title' |
176 | | - where class = 'Mapbender\CoreBundle\Element\Redlining'; |
177 | | - |
178 | | - |
179 | | -### FeatureInfo |
180 | | - |
181 | | -* showOriginal deprecated - parameter not available anymore from 3.2.3 |
182 | | -* highlighting: true - new >= 3.2.3 highlights the geometry if you have WKT integrated in the featureinfo result - see https://github.com/mapbender/mapbender/issues/1287 and also https://wheregroup.com/blog/details/mapbender-featureinfo-mit-highlighting-der-treffer-geometrie/ |
183 | | - |
184 | | - |
185 | | -### Print - Print queue |
186 | | - |
187 | | -* Mapbender supports print queue |
188 | | -* see https://wheregroup.com/blog/details/mapbender-druckauftraege-verwalten-und-wiederverwenden-einrichtung-der-warteschleife/ |
189 | | - |
| 3 | +Please note: The Migration Guide moved to the Mapbender documentation https://doc.mapbender.org/en/installation/migration.html. |
0 commit comments