Sundsvallskommun / OpenEMap-WebUserInterface

Open eMap user interface for the main map client
GNU Affero General Public License v3.0
4 stars 5 forks source link

Group layers - incremental groups under groups (4h) #118

Closed anderserla closed 9 years ago

anderserla commented 10 years ago

It would be great to have the ability of multiple group layers nested inside each other.

ghost commented 9 years ago

Tested this with change in config2.json - need more testing with other configs containing sub groups.

anderserla commented 9 years ago

Great! Tested with debug_all.json, that contains more subgroups. Works fine, with one small issue: When checking a layer or sublayer, all its parents should be checked. Now only its first parent gets checked. image

anderserla commented 9 years ago

Another issue to be solved is that the context menu item for adding a group layer should be activated even if the user clicks a group layer, making it possible to add group layers under group layers. Could you give me a hint on this @sweco-sebhar ?

ghost commented 9 years ago

You are right there is no logic that disables the context menu by itself, but there is logic that disables invididual actions that should be displayed in the context menu and I can only assume that when no actions are enabled the context menu will not be showed. There is logic in place that only enables group creation on the root here:

https://github.com/Sundsvallskommun/OpenEMap-WebUserInterface/blob/master/src/main/javascript/view/layer/Advanced.js#L188