Closed ghtmtt closed 2 years ago
Is this by design?
No, it's not by design. It's just because most QGIS layouts have a map, we didn't think about this use-case when working on this plugin. A patch would be welcome ;-)
a functional workaround is something like that:
try:
if not scales and atlas_layout.referenceMap().atlasScalingMode() == QgsLayoutItemMap.Predefined:
use_project = project.useProjectScales()
map_scales = project.mapScales()
if not use_project or len(map_scales) == 0:
logger.info(
'Map scales not found in project, fetching predefined map scales in global config'
)
map_scales = global_scales()
settings.predefinedMapScales = map_scales
except:
pass
that's great. Thanks!
If in QGIS a print layout is created without a map, e.g. only some tables and text labels for a report-like use, the plugin is not generating anything.
The request points to:
while the plugin error on the server is:
adding a map, and checking the
Exclude item from exports
in theRendering
tab works, but it seems like a hack :)Is this by design?