[mkgmap-dev] mkgmap:area2poi placement
From lig fietser ligfietser at hotmail.com on Wed Apr 6 14:02:24 BST 2022
Ok, I've now managed to delete the poi with this line: boundary=national park & mkgmap:area2poi=true & is_in(boundary,national_park,in_or_on)=false {delete boundary} I also want to use it for all boundaries but this line is not working: boundary=* & mkgmap:area2poi=true & is_in(boundary,*,in_or_on)=false {delete boundary} How can I use the wildcard? According to the style manual this should be possible: is_in(tag,value,method) true if the element is in polygon(s) having the specified tag=value according to the method, false otherwise. value can be '*' which matches any polgon having tag. The methods available depend on the Style section ________________________________ I don't see a way to control the placement of the POI for a multipolygon; it sets it to the centre point of the biggest area. You could suppress the POI if it isn't within the area by using the is_in() function, something like: tag=value & mkgmap:area2poi=true & is_in(tag, value, in_or_on)=true [0x...] Ticker On Wed, 2022-04-06 at 07:46 +0000, lig fietser wrote: > Hi, > I've noticed on my map that mkgmap places the poi of an area like > the "Nationalpark Niedersächsisches Wattenmeer" > (https://www.openstreetmap.org/relation/157811) outside of the > National Park, so not in the sea but on the mainland near Wittmund. I > prefer to place those pois inside such odd shapes polygons. OSM carto > puts the label just east of Borkum. I'm not sure if there was a > mkgmap option how to control this behaviour? I know it can be done by > manipulating the OSM data and add a label, but I prefer to control > this in mkgmap. > > > > > > > _______________________________________________ > mkgmap-dev mailing list > mkgmap-dev at lists.mkgmap.org.uk > https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev at lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20220406/5814c8fc/attachment.html>
- Previous message: [mkgmap-dev] mkgmap:area2poi placement
- Next message: [mkgmap-dev] mkgmap:area2poi placement
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list