[Therion] Fwd: PDF output: layers nested?

Andrew Atkinson andrew at wotcc.org.uk
Tue Nov 23 17:01:37 CET 2021





On 23/11/2021 15:49, Benedikt Hallinger wrote:
> es, exactly, when i use "select" and fetch the maps that way, it 
> generates layers as expected.
> However, in this instance i just have one big "map" element, but it 
> would be nice if i could have the submaps also as distinct layers.

With a map definition in th file

map mymap
  map1
  map2
  map3
endmap

then in thconfig

select mymap

should give you map1, map2.. as leyers in pdf

if you also have in a th file

map map1
  mapA
  mapB
  mapC
endmap

select mymap -maplevel 2

should give you layers of mapA, mapB...

In your example you had scraps, I don't think the map-level works on 
scraps. If I have a survey with a single survey I always make it into a 
map, I find this makes things easier in the end. I also do this if In 
have many scraps that I want on several layers

map SingleScrap
  SingleScrapA
endmap

(I have no idea why scraps cannot just be treated as maps, it's probably 
something to do with the coding, however it is easy to just turn them 
into maps, I've not found any downside, well apart from a little more 
typing and a larger map tree)

Andrew


More information about the Therion mailing list