Andrey
I’m interested in what you are trying to do with point 1, probably something I want to turn my mind to in the next few months.
Back on 2 July I asked a similar question “Can we invoke multiple tex-map \maplayouts for each exported map output?” but didn’t get any response. Perhaps a stupid question, or self-evidently never going to work. I have not looked at it since.
At present I don’t have any answers for you.
Perhaps look at Henry’s contribution here, as it seems like he has this aspect under control,
https://github.com/speleo/SpeleoPhilippines/blob/master/Region-2/BlueWaterCave_20170213.JPG
and copying from his post earlier this week…
Take a look at this https://github.com/speleo/SpeleoPhilippines/blob/master/CodeLibrary/_layouts.tex
You’ll then need to inject the code into your thconfig file using the “input” command.
https://github.com/speleo/SpeleoPhilippines/blob/master/Region-2/Baggao/thconfig-BlueWater-System
Bruce
From: Therion [mailto:therion-bounces@speleo.sk] On Behalf Of ?????? ???????? via Therion
Sent: Wednesday, 16 August 2017 7:42 AM
To: Therion@speleo.sk
Cc: андрей коженков <drunews@mail.ru>
Subject: [Therion] Doubled legend and cyrillic in metapost
Dear Therion users,
I've got few issues with map header customization using metapost and tex code.
1. Then I am trying to move north arrow and legend somehere away from main map header using "\def\maplayout {\legendbox{5}{90}{NW}}" code the legend and norh arrow is printed twice.

I'm sure I've made a mistake here but after few days of messing with the code result is still the same.
<snipped>
--
Thanks
Andrey