Skip to content

olivierdalang/layerCombinations

Repository files navigation

THIS PLUGIN IS DEPRECATED SINCE SAME FUNCTIONALITY HAS BEEN ADDED TO QGIS CORE

LayerCombinations

Disclaimer : use at your own risk, the plugin is in developpement. In case of problem, open your QGis file in a plain text editor, and remove everything between <LayerCombinations> and </LayerCombinations>.

Description

LayerCombinations is a QGis plugin to store/restore layer visbilities, folding, snapping and map extents. The layer visibilities combinations can then be applied dynamically to maps items.

A video demonstration of an older version is available here : https://vimeo.com/70446444

Usage

To save a layer combination, enter a name and press "save". To restore a layer combination, choose it from the drop down list. To delete a layer combination, choose it from the drop down list and press "delete". To update a layer combination, choose it from the drop down list, make your changes, and press "update". To restore the previous state, select the "- NONE -" item.

Once there is at least one combination, you can select a map in the composer and assign a combination to it using the new docking pane at the bottom-right. When the combination is updated, the map is also dynamically updated. Note that the layer order in the map corresponds to the layer order when the combination is saved. One has to update a combination to take into account a modified layer order.

If you want to avoid folding, snapping or map extent to be saved and applied, uncheck the corresponding checkbox. These checkboxes have no effect on the print composer.

When you add new groups/layers, they are considered to be hidden and folded by existing combinations, snap settings however won't be modified by combinations.

You can switch between displaying the user interface in a comfortable docking pane or as a compact toolbar by using the "change widget type" action from the plugin menu.

Feedback / bugs

Please report bugs and ideas on the issue tracker : https://github.com/olivierdalang/layerCombinations/issues

Or send me some feedback at : olivier.dalang@gmail.com

Version history

  • 2012-12-26 - version 0.1 : intial release
  • 2012-12-28 - Version 0.2 : Fixed critical bug where special characters in the combination's name could make the QGis project to become unreadable... (as I said, it is experimental... :) )
  • 2012-12-30 - Version 0.3 :
    • Rewriting of internal code
    • Saves the active combination to the file
    • Sorts the lists
  • 2012-12-31 - Version 0.4 :
    • Layer Combinations can be assigned to Maps in the composer (!!)
    • Special characters are taken into account
  • 2013-01-16 - Version 0.5 :
    • added help (via the plugin menu)
    • the layer order is now properly taken into account
  • 2013-01-20 - Version 0.6 :
    • group folding is stored also (does not work for subgroups in 1.8)
    • layer folding is stored also (does not work at all in 1.8)
    • "current" layer combination is stored
  • 2013-04-18 - Version 0.7 :
    • storage format improved (using the new composer's UUID), applying compositions to maps should be more robust
    • /!\ compatibility is broken with 0.6. A python script is provided to partialy translate old files (almost untested)
    • added "use folding" checkbox to temporarily disable the folding feature
    • several bug fixes
  • 2013-06-08 - Version 0.8 :
    • adapted to Python API V2
    • corrected a bug where combination's application where lost upon reloading the project
    • "- NONE -" combination now also stores folding
    • /!\ compatibility is broken with 0.7.
    • /!\ now only works with QGIS 2.0 and higher
  • 2013-06-08 - Version 1.0 :
    • THE PLUGIN IS NO MORE FLAGGED AS EXPERIMENTAL (which does not mean that you can sue me in case of problems)
    • the UI can be displayed in a toolbar rather than a QDockWindow to save space (using change widget type from the plugin menu)
  • 2013-06-08 - Version 1.1 :
    • Small bug fixes
  • 2014-03-20 - Version 1.2 :
    • Added snapping and zoom ! Yay !
  • 2014-06-26 - Version 1.2.1 :
    • Fixed a (stupid) bug which made zoom unusable

Contribute

Help is welcome ! There's a serie of issues and ideas on the github repository : https://github.com/olivierdalang/layerCombinations.git

About

QGis plugin to store/restore layer visbilities

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages