<div dir="ltr"><div class="gmail_default" style="font-size:small">Olly<br><br></div><div class="gmail_default" style="font-size:small">This is a very nice addition indeed.<br></div><div class="gmail_default" style="font-size:small">I tested it and it works with single level maps, but it doesn't seem to work with nested maps, or I missed something about the usage.<br><br></div><div class="gmail_default" style="font-size:small">It works with several map definitions, not being merged in an overall map like:<br></div><div class="gmail_default" style="font-size:small"><i> map M1 -colour [60 70 80]<br></i></div><div class="gmail_default" style="font-size:small"><i> endmap<br></i><div class="gmail_default" style="font-size:small"><i> map M2 -colour [60 70 80]<br></i></div><div class="gmail_default" style="font-size:small"><i> endmap<br> ...<br></i></div><div class="gmail_default" style="font-size:small"><i> export map ........ pdf<br><br></i></div><div class="gmail_default" style="font-size:small">However when I group M1 and M2 in a larger map(without specifying a colour) it overrides the colours and they do not appear.<br></div><div class="gmail_default" style="font-size:small"><i> map MGlobal<br></i></div><div class="gmail_default" style="font-size:small"><i> M1<br></i></div><div class="gmail_default" style="font-size:small"><i> M2<br></i></div><div class="gmail_default" style="font-size:small"><i> endmap<br></i></div><div class="gmail_default" style="font-size:small"> <br></div>To me it seems better that the lower level map colors are kept, unless the global one explicitly specifies a colour.<br></div><div class="gmail_default" style="font-size:small">I guess the example above was done with several map defs without grouping them in a larger one.<br><br></div><div class="gmail_default" style="font-size:small">Also, when I have several map defs(without colours and without a global map) and specify "colour map-fg map" the pieces get colored randomly. Maybe this is the expected behavior, but to me it sounds more logical to use the default map-fg colour until a map specifies one explicitly.<br></div><div class="gmail_default" style="font-size:small">The moment I set a global map (without colour) the default map-fg steps in.<br><br></div><div class="gmail_default" style="font-size:small">Am I asking too much :)<br><br></div><div class="gmail_default" style="font-size:small">Vladimir<br></div> <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 28, 2016 at 5:37 AM, Olly Betts <span dir="ltr"><<a href="mailto:olly@survex.com" target="_blank">olly@survex.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sun, Mar 27, 2016 at 09:44:37AM +0100, Olly Betts wrote:<br>
> On Mon, Mar 14, 2016 at 09:23:39PM +1300, Bruce wrote:<br>
> > Colour by map works just fine, as does colour by scrap or altitude.<br>
> ><br>
> > In the context of your question I thought you were trying to SPECIFY<br>
> > which colour a particular scrap (or map or altitude) would be<br>
> > assigned.<br>
><br>
> I was "commissioned" to implement the ability to specify the colour<br>
> used for each map - patch attached.<br>
><br>
> With this (surprisingly small) change you can specify the colour for<br>
> each map, which then overrides the automatic choice when the layout<br>
> specifies "colour map-fg [map]". Any maps without one get the same<br>
> automatic colour they would before.<br>
><br>
> Usage example:<br>
><br>
> map 2012.map -projection plan<br>
> colour [0 70 0]<br>
> # etc<br>
> endmap<br>
<br>
</span>You can also specify the colour on the "map" line (which is probably<br>
clearer):<br>
<br>
map 2012.map -projection plan -colour [0 70 0]<br>
# etc<br>
endmap<br>
<br>
Jenny Black produced an example showing what you can do with this patch:<br>
<br>
<a href="https://survex.com/~olly/107-plan-col-year.pdf" rel="noreferrer" target="_blank">https://survex.com/~olly/107-plan-col-year.pdf</a><br>
<br>
Cheers,<br>
Olly<br>
_______________________________________________<br>
Therion mailing list<br>
<a href="mailto:Therion@speleo.sk">Therion@speleo.sk</a><br>
<a href="http://mailman.speleo.sk/mailman/listinfo/therion" rel="noreferrer" target="_blank">http://mailman.speleo.sk/mailman/listinfo/therion</a><br>
</blockquote></div><br></div>