<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof">Ok,</div>
<div class="elementToProof">I've now managed to delete the poi with this line:<br>
</div>
<div class="elementToProof">boundary=national park & mkgmap:area2poi=true & is_in(boundary,national_park,in_or_on)=false {delete boundary}</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I also want to use it for all boundaries but this line is not working:</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
boundary=* & mkgmap:area2poi=true & is_in(boundary,*,in_or_on)=false {delete boundary}<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
How can I use the wildcard? According to the style manual this should be possible:</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
is_in(tag,value,method)<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
true if the element is in polygon(s) having the specified
<div>tag=value according to the method, false otherwise.</div>
<div>value can be '*' which matches any polgon having tag. The</div>
methods available depend on the Style section</div>
<br>
<div class="elementToProof"><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<u><i><b><br>
</b></i></u></div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<br>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText elementToProof">I don't see a way to control the placement of the POI for a<br>
multipolygon; it sets it to the centre point of the biggest area.<br>
<br>
You could suppress the POI if it isn't within the area by using the<br>
is_in() function, something like:<br>
<br>
tag=value & mkgmap:area2poi=true & is_in(tag, value, in_or_on)=true<br>
   [0x...]<br>
<br>
Ticker<br>
<br>
On Wed, 2022-04-06 at 07:46 +0000, lig fietser wrote:<br>
> Hi,<br>
> I've noticed on my map that mkgmap places the poi of an area like<br>
> the  "Nationalpark Niedersächsisches Wattenmeer"<br>
> (<a href="https://www.openstreetmap.org/relation/157811" data-auth="NotApplicable">https://www.openstreetmap.org/relation/157811</a>)  outside of the<br>
> National Park, so not in the sea but on the mainland near Wittmund. I<br>
> prefer to place those pois inside such odd shapes polygons. OSM carto<br>
> puts the label just east of Borkum.  I'm not sure if there was a<br>
> mkgmap option how to control this behaviour? I know it can be done by<br>
> manipulating the OSM data and add a label, but I prefer to control<br>
> this in mkgmap.<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> mkgmap-dev mailing list<br>
> mkgmap-dev@lists.mkgmap.org.uk<br>
> <a href="https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" data-auth="NotApplicable">
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
<br>
<br>
_______________________________________________<br>
mkgmap-dev mailing list<br>
mkgmap-dev@lists.mkgmap.org.uk<br>
<a href="https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" data-auth="NotApplicable">https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></div>
</span></font></div>
</body>
</html>