camptocamp / ngeo

Library combining OpenLayers and AngularJS
https://camptocamp.github.io/ngeo/master/examples
MIT License
135 stars 87 forks source link

Définir Ouverture par défaut #816

Closed sbrunner closed 8 years ago

sbrunner commented 8 years ago

Related to: https://github.com/camptocamp/c2cgeoportal/issues/1708

Use and document the isExpanded attribute in LayerGroup UI_Metadata.

pgiraud commented 8 years ago

@sbrunner Is the version 2 theme service already returning isExpanded? It seems like the info is missing. https://geomapfish-demo.camptocamp.net/2.0/wsgi/themes?version=2&background=background CC @olivierSemet

sbrunner commented 8 years ago

Effectively, I should have a look ...

olivierSemet commented 8 years ago

I hosted an example of this feature on my GH pages here

As shown, layer group named "Group" from the "OSM" theme is expanded by default thanks to its isExpanded attributs set to true. Others layer groups are not expanded (isExpanded set to false or isExpanded attribut not present for the layer group)

pgiraud commented 8 years ago

Can you please add the 'fa-wh' so that the width of the expand-node element doesn't change.

olivierSemet commented 8 years ago

Do you mean 'fa-fw' ?

pgiraud commented 8 years ago

Yes, sorry.

sbrunner commented 8 years ago

fa-fw? What's does it mean?

fredj commented 8 years ago

fa-fw fixed width icons, see https://fortawesome.github.io/Font-Awesome/examples/

sbrunner commented 8 years ago

Thanks @fredj