Closed ShannonRice closed 3 years ago
I encountered the same problem.
Sorry, I rediscovered the same problem on the M1 Mac using macOS13.2.1 today, the current QGIS version is 3.30, and the MapSwipe Tool is 1.2. Best, Nie
I had this problem as well, but I've figured out a fix.
After the following lines in swipemap.py
in the setMap
function…
settings = QgsMapSettings( self.canvas.mapSettings() )
settings.setLayers( self.layers )
settings.setBackgroundColor( QColor( Qt.transparent ) )
…add this line:
settings.setDevicePixelRatio( 1 )
For reference I'm on Fedora Linux 35 (GNOME 41.6, Wayland), QGIS 3.22.8 and MapSwipe Tool 1.2.
I had this problem as well, but I've figured out a fix.
After the following lines in
swipemap.py
in thesetMap
function…settings = QgsMapSettings( self.canvas.mapSettings() ) settings.setLayers( self.layers ) settings.setBackgroundColor( QColor( Qt.transparent ) )
…add this line:
settings.setDevicePixelRatio( 1 )
For reference I'm on Fedora Linux 35 (GNOME 41.6, Wayland), QGIS 3.22.8 and MapSwipe Tool 1.2.
@osgav Tks a lot! it worked on my MAC
Running Mac 10.13.6 - QGIS 3.4 (although I've experienced issue in QGIS 3.6.1 as well.) When i have perfectly aligned images set to visible, and attempt to use the Mapswipe tool, it displays one of the images offset signficantly from correct location. (so basically, it doesn't work for me). Attached is a screenshot. Please let me know if you have suggestions. I've tried uninstalling, and reinstalling, and nothing allow me to use this, what would be a very useful tool.)
Best, Shannon