That's what I would have thought too, but no luck. It seems like the "polygons" file maybe only deals with closed ways and not specifically relations?

For what it's worth, my program is invoked with:

java -jar mkgmap-r4586/mkgmap.jar --gmapsupp --gmapi --transparent --output-dir=gmap_output --style-file=mkgmap-r4586/new_style/ data.osm

and the 'polygons' file in new_style/polygons has the following line in it:
boundary=administrative [0x07 resolution 20]

Craig

From Gerd Petermann gpetermann_muenchen at hotmail.com on Tue Jan 18 18:41:33 GMT 2022

Hi Craig,

I think all you need is a rule in style file polygons to render the object.

Gerd

On Tue, Jan 18, 2022 at 1:33 PM Craig Durkin <craigdurkin@gmail.com> wrote:
Hi mkgmap folks -- sorry if this is kind of a beginning question, but I can't for the life of me figure out how to get administrative boundaries (or really any arbitrary polygon) to display with mkgmap. Ideally I'd be able to lightly shade the inside of the boundary polygon, but even displaying the polygon is eluding me.

An example OSM relation that I'm trying to display is Conyers, GA, USA relation ID 119584.

I understand that there might be editing necessary to the style files, but it's not really clear: do I edit relations, lines, or polygons? Or all 3?

Can anyone offer any tips?

Thanks,
Craig