logo separator

[mkgmap-dev] How to make a scale-dependent TYP style?

From Ticker Berkin rwb-mkgmap at jagit.co.uk on Sat Apr 4 19:05:09 BST 2020


You'd have to do the same trick with all highway types and set a
representation for all of them in your TYP file

mkgmap doesn't have a default TYP, but there are a couple of examples
in {distribution}/examples/typ-files 

I find it best not to have any highway _lines in my personal TYP file
for the reasons you are seeing - it looks much better on my device to
let it represent them using its default mechanism.


On Sat, 2020-04-04 at 19:55 +0200, Niccolo Rigacci wrote:
> On Sat, Apr 04, 2020 at 03:30:05PM +0200, Arndt Röhrig wrote:
> > 
> > you must create an own type for each zoom-level.
> > 
> > highway=motorway [0x1 resolution 24 continue]
> > highway=motorway [0x10101 resolution 23-20 continue]
> > highway=motorway [0x10102 resolution 19-18]
> Thanks Arndt, this make sense!
> But if I read the source file for the default style 
> (resources/styles/default/lines) I see only one definition for 
> (e.g.) highway=secondary:
> highway=secondary [0x04 road_class=2 road_speed=3 resolution 20]
> there are not other definitions for other resolutions! However 
> secondary roads are rendered with increasing sizes, starting from 
> resolution 20 to greather ones.
> B.t.w. where can I find the default TYP file used by mkgmap?

More information about the mkgmap-dev mailing list