Commit 06c801d
fix: layers would be duplicated when doing some changes on them
* bugfix/AB#69091_DB-layers-edition-still-broken fix: add missing FormWrapperModule to the add-aggregation-modal for layers fix: add default case when aggregation list of selected resource does not contain any item
* bugfix/AB#69091_DB-layers-edition-still-broken refactor: change conditions style in order to be more readable and easy to debug for developers fix: delete addLayer method on onAddLayer event in Layer class as that method only triggers when the layer is already added fix: remaining listeners for each Layer instance trigger on switching between layers instance. Added method removeAllListeners to Layer class in order to clean up all listeners once we remove the related Layer class instance fix: main duplication layer issue by always triggering layer editor form change updates once all related layers changes of the map are finished
* bugfix/AB#69091_DB-layers-edition-still-broken refactor: improve service dependency instantiation for Layer class using the Injector from map component in order to simplify and have access to all the needed dependencies from one single property fix: add renderer to Layer class in order to handle all DOM event listeners easily
* bugfix/AB#69091_DB-layers-edition-still-broken refactor: delete some map listeners added from Layer class on layer removal fix: duplication of layers while loading layer changes if any map event is triggered by disabling them meanwhile layer data is setting up
* bugfix/AB#69091_DB-layers-edition-still-broken fix: add recursive listener removal for children layers in the removeAllListeners method feat: move map layers set in map component's drawMap method in order to be callable from outside the component without any further config change in the map instance feat: update layers property as public in order to keep layers data sync in editor layer modal component, as the layer is created from a definition, therefor layers property in the map needs to be updated from outside the component itself to keep all listeners removal sync on switching from editor component to settings component etc. fix: add missing teardown logic for mapEvent subscription in map-settings to avoid memory leaks. fix: correct await on layer update for all layers(including grouplayers with async methods to load sublayers) fix: update layers list with edited layers(name could be changed and it was not reflected in map-layers list)
---------
Co-authored-by: Antoine Hurard <[email protected]>1 parent 6baabbc commit 06c801d
File tree
11 files changed
+329
-165
lines changed- libs/safe/src/lib
- components
- aggregation/add-aggregation-modal
- editor-control
- ui
- core-grid/map-modal
- map
- widgets/map-settings
- edit-layer-modal
- layer-datasource
- map-layers
- services/map
11 files changed
+329
-165
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
146 | 149 | | |
147 | 150 | | |
148 | 151 | | |
| |||
235 | 238 | | |
236 | 239 | | |
237 | 240 | | |
238 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
239 | 244 | | |
240 | 245 | | |
241 | 246 | | |
242 | 247 | | |
243 | 248 | | |
244 | 249 | | |
245 | 250 | | |
246 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
247 | 254 | | |
248 | 255 | | |
249 | 256 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
57 | | - | |
58 | | - | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
0 commit comments