New answers tagged

1

I managed to find a solution to this, not the prettiest code, but gets the job done: cover_layer_names = ['name1','name2'] # add layer names here for CV in cover_layer_names: cover_layer = QgsProject.instance().mapLayersByName(CV)[0] projectInstance = QgsProject.instance() layoutmanager = projectInstance.layoutManager() layout = ...


2

I decided to project the Extent coordinates to Web Mercator. This solved the "stretched" problem I was having. It appears the same issue you are having. Here is a Javascript function I built that converts the current bounds of the map to 3857 and sets up the "mapOptions" part of the Export Web Map JSON. getMapOptions() { const bounds = map....


Top 50 recent answers are included