
Hi Ticker. I do exactly the same as you do for reserves, danger_area and other one or two other types. I was just trying to make it differently for one such case when it is less important to draw over the entire area. Thanks anyhow! Regards Karl On söndag 14 januari 2024 12:16:15 CET Ticker Berkin wrote:
Hi Karl
You could simply not match it in "polygons" but render the lines that define it.
Alternatively, what I do, is catch it early in "polygons" to render it but with [... continue] and render it striped/transparent with a high _drawOrder.
[_polygon] Type=0x16 String=Nature Reserve Xpm="32 32 2 1" "\ c #00FF00" " c none" "\\\\\\ \\\\\\\\ \\" "\\\\\\\ \\\\\\\\ \" "\\\\\\\\ \\\\\\\\ " " \\\\\\\\ \\\\\\\\ " " \\\\\\\\ \\\\\\\\ " " \\\\\\\\ \\\\\\\\ " " \\\\\\\\ \\\\\\\\ " " \\\\\\\\ \\\\\\\\ " " \\\\\\\\ \\\\\\\\ " " \\\\\\\\ \\\\\\\\ " " \\\\\\\\ \\\\\\\\" "\ \\\\\\\\ \\\\\\\" "\\ \\\\\\\\ \\\\\\" "\\\ \\\\\\\\ \\\\\" "\\\\ \\\\\\\\ \\\\" "\\\\\ \\\\\\\\ \\\" "\\\\\\ \\\\\\\\ \\" "\\\\\\\ \\\\\\\\ \" "\\\\\\\\ \\\\\\\\ " " \\\\\\\\ \\\\\\\\ " " \\\\\\\\ \\\\\\\\ " " \\\\\\\\ \\\\\\\\ " " \\\\\\\\ \\\\\\\\ " " \\\\\\\\ \\\\\\\\ " " \\\\\\\\ \\\\\\\\ " " \\\\\\\\ \\\\\\\\ " " \\\\\\\\ \\\\\\\\" "\ \\\\\\\\ \\\\\\\" "\\ \\\\\\\\ \\\\\\" "\\\ \\\\\\\\ \\\\\" "\\\\ \\\\\\\\ \\\\" "\\\\\ \\\\\\\\ \\\" ; "12345678901234567890123456789012" [end]
I do the same for danger_area, but in red and the stripes going the other way!
Ticker
On Sat, 2024-01-13 at 19:36 +0100, 7770 wrote:
Hi. I read the TYP compiler manual but don't understand if it is possible to make a polygon to have: 1. transparent inner colour (this should be fine using "none" as colour i imagine). 2. adding a border with one or two colours, making the outline of the area/ polygon.
If it is possible, can one set the border width as well?
For example, i want to mark the boundary of a nature reserve, but not fill it.
I attached a very small section of a larger polygon (from some other map), the outer colour is darker blue, the inner is lighter blue.
Regards Karl _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev