Commit e625753
committed
fix: restore selection highlight after redraws and wire up layer dropdown
Selection highlight lost on redraw or palette switch: the three
render*() functions nulled out _selectedType/_selectedId before
rebuilding layers, and the switch*Scheme() functions called setStyle
on all layers without checking for an active selection. Fixed by
removing the null-outs and adding a highlightObject() call at the
end of each render and scheme-switch path (including inside the async
applyGeoFeatures callback in renderSegments) so the orange highlight
is reapplied immediately after every restyle.
Layer selection dropdown had no effect: initializeLayerSwitching(map)
was defined in map_layers_config.html but never called — only
initializeMapLayers(map) was invoked in object_map.html. Added the
missing call so the [data-layer] click handlers are actually attached.1 parent fb00b61 commit e625753
2 files changed
Lines changed: 9 additions & 3 deletions
File tree
- cesnet_service_path_plugin
- static/cesnet_service_path_plugin/js
- templates/cesnet_service_path_plugin
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
| 355 | + | |
355 | 356 | | |
356 | 357 | | |
357 | 358 | | |
| |||
366 | 367 | | |
367 | 368 | | |
368 | 369 | | |
| 370 | + | |
369 | 371 | | |
370 | 372 | | |
371 | 373 | | |
| |||
383 | 385 | | |
384 | 386 | | |
385 | 387 | | |
| 388 | + | |
386 | 389 | | |
387 | 390 | | |
388 | 391 | | |
| |||
848 | 851 | | |
849 | 852 | | |
850 | 853 | | |
851 | | - | |
852 | 854 | | |
853 | 855 | | |
854 | 856 | | |
| |||
935 | 937 | | |
936 | 938 | | |
937 | 939 | | |
| 940 | + | |
| 941 | + | |
938 | 942 | | |
939 | 943 | | |
940 | 944 | | |
| |||
1208 | 1212 | | |
1209 | 1213 | | |
1210 | 1214 | | |
1211 | | - | |
1212 | 1215 | | |
1213 | 1216 | | |
1214 | 1217 | | |
| |||
1241 | 1244 | | |
1242 | 1245 | | |
1243 | 1246 | | |
| 1247 | + | |
1244 | 1248 | | |
1245 | 1249 | | |
1246 | 1250 | | |
| |||
1262 | 1266 | | |
1263 | 1267 | | |
1264 | 1268 | | |
1265 | | - | |
1266 | 1269 | | |
1267 | 1270 | | |
1268 | 1271 | | |
| |||
1292 | 1295 | | |
1293 | 1296 | | |
1294 | 1297 | | |
| 1298 | + | |
| 1299 | + | |
1295 | 1300 | | |
1296 | 1301 | | |
1297 | 1302 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
| 411 | + | |
411 | 412 | | |
412 | 413 | | |
413 | 414 | | |
| |||
0 commit comments