Swiping (apologies to Dora the Explorer) is a simple way to show the difference between two layers or highlight changes over time. I’ve found that this neat trick is very effective in grabbing people’s attention or getting a reaction from them. It’s a common feature you can see in webmaps using Leaflet and Mapbox. This functionality is also available in desktop GIS like GRASS through the Map Swipe and QGIS via the MapSwipe Tool plugin
You can install the
MapSwipe Tool plugin via
Plugins -> Manage and Install Plugins.
The plugin is used in a very straightforward manner. For my example below, I’m using two XYZ maps (Google Satellite and Bing VirtualEarth). The plugin works for both vector and raster layers.
Select the layer that you want to swipe on the Layers panel.
Activate the plugin by clicking the MapSwipe Tool icon in the Plugins toolbar or via
Plugins -> Map swipe tool -> Map swipe tool. Note that this will unselect/disable your layer as well.
Drag your mouse to swipe the selected layer. You can swipe horizontally or vertically.
Once finished, click the icon again to deactivate the plugin.
That’s it. You can use the MapSwipe Tool on your next mapping project.
If you find my website or any of the materials I share useful, you can consider donating to the cause below.
Except when explicitly stated otherwise, this work and its contents by Ben Hur S. Pintor is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Other works (software, source code, etc.) referenced in this website are under their own respective licenses.
This site is powered by Jekyll and hosted on Github (view source)