.how to get layers mutually disabled inside a group in QGIS (pyqgis).

…when QGIS cannot do something by itself, remember you can do it anyway with QGIS… great! 🙂

QGIS has a very nice way for handling the python macros at project level, you can define and run the macro when opening, saving or closing a project. In this post I would like share a small and trivial python snippets on how to get alternating layers inside the TOC (Table of Contents) of QGIS by using a python macro in order to switch between different base layers like Bing Map, Google Map, OpenStreetMap. Continue reading