[Therion] Fwd: PDF output: layers nested?

Benedikt Hallinger beni at hallinger.org
Tue Nov 23 17:51:16 CET 2021


Hi,
no, i really have submaps in my example.
mymap in my case is defined in my thconfig file, and it references a 
mainmap as submap.
That submap again is a collection of other submaps, that finally contain 
scraps:


-------------
source
   map 164-Grundriss -title "Mappe 164: Wandaugenlabyrinth Ost"

     #preview above 172-Hauptplan at 172.Wandaugenlabyrinth.Hirlatzhoehle
     preview above 162-Hauptplan at 162.Wandaugenlabyrinth.Hirlatzhoehle
     preview above 180-Hauptplan at 180.Wandaugenlabyrinth.Hirlatzhoehle
     preview above 170-Hauptplan at 170.Wandaugenlabyrinth.Hirlatzhoehle
     preview above 171-Hauptplan at 171.Wandaugenlabyrinth.Hirlatzhoehle

     164-Hauptplan at 164.Wandaugenlabyrinth.Hirlatzhoehle     #<-- this 
contains several other maps, which finally contain scraps

   endmap
endsource
----------------


> select 164-Grundriss -map-level 2
This works, but removes the previews (from 164-Grundriss) and also the 
offsets defined in 164-Hauptplan.
I also tried "select 164-Grundriss -map-level basic" with the same 
result.




Am 2021-11-23 17:01, schrieb Andrew Atkinson:
> 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
> _______________________________________________
> Therion mailing list
> Therion at speleo.sk
> https://mailman.speleo.sk/listinfo/therion


More information about the Therion mailing list