We are now ready to add the map inset. Switch the thePrint Layoutwindow. Go toAdd Item ‣ Add Map. Drag a rectangle at the place where you want to add the map inset. You will now notice that we have 2 map objects in the Print Layout. When making changes, make sure you have th...
crs=4326", 'memory', 'memory') self.assertTrue(layer.isValid()) f = QgsFeature() f.setGeometry( QgsGeometry.fromWkt('Polygon((1 2, 3 2, 3 4, 1 4, 1 2))')) layer.dataProvider().addFeatures([f]) QgsProject.instance().addMapLayer(layer) w.setOutputCrs(...
Creating circular insets and other fun QGIS layout tricks Thanks to the recent popularity of the “30 Day Map Challenge“, the month of November has become synonymous with beautiful maps and cartography. During this November we’ll be sharing a bunch of tips and tricks which utilise some advan...
QgsMapLayerRegistry.instance().addMapLayer(vLayer) self.canvas.setExtent(vLayer) I have another method of adding layer in memory insetad, and this layer does not have the same problem. I have no idea why this particular layer acts like this, while all others acts normally. Area that is ...