<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div>
Hi Niccolo,
</div>
<div>
<br>
</div>
<div>
you must create an own type for each zoom-level.
</div>
<div>
<br>
</div>
<div>
highway=motorway [0x1 resolution 24 continue]
<br>highway=motorway [0x10101 resolution 23-20 continue]
<br>highway=motorway [0x10102 resolution 19-18]
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
level 20 is zoom out very far. Try 0:24,1:23,2:22......
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
Greetz
</div>
<div>
<br>
</div>
<div>
Arndt
</div>
<blockquote type="cite">
<div>
Niccolo Rigacci <
<a href="mailto:niccolo@rigacci.org">niccolo@rigacci.org</a>> hat am 4. April 2020 um 15:12 geschrieben:
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
Hi to all,
</div>
<div>
<br>
</div>
<div>
I'm trying to create a map for an old eTrex 10 Garmin device.
</div>
<div>
Everything works fine, but I don't understand how to make a
</div>
<div>
custom TYP file that will render roads differently at different
</div>
<div>
scales.
</div>
<div>
<br>
</div>
<div>
This is my mkgmap invokation:
</div>
<div>
<br>
</div>
<div>
mkgmap \
</div>
<div>
--reduce-point-density=4 --unicode \
</div>
<div>
--description="$DESCRIPTION" \
</div>
<div>
--style-file='./styles/default/' \
</div>
<div>
--country-name='Italy' --country-abbr='I' \
</div>
<div>
--region-name='Toscana' \
</div>
<div>
--family-id=9999 \
</div>
<div>
--gmapsupp 63240*.osm.pbf \
</div>
<div>
./typ/my_etrex10.txt
</div>
<div>
<br>
</div>
<div>
as you can see I have customized the default style and I have
</div>
<div>
provided a custom TYP file to override only _line Type=0x006 and
</div>
<div>
Type=0x016 rendering. My style defines four levels:
</div>
<div>
<br>
</div>
<div>
levels = 0:24, 1:20, 2:19, 3:18
</div>
<div>
<br>
</div>
<div>
The problem is that my custom TYPs are applied the same at any
</div>
<div>
level (scale), whereas the default TYP are scale-dependant (e.g.
</div>
<div>
secondary roads are rendered gradually thicker when zooming in).
</div>
<div>
<br>
</div>
<div>
This is my TYP file, indeed there are no scale-dependant rules!
</div>
<div>
Am I missing something in the TYP syntax?
</div>
<div>
<br>
</div>
<div>
[_line]
</div>
<div>
Type=0x006
</div>
<div>
;GRMN_TYPE:
</div>
<div>
UseOrientation=Y
</div>
<div>
LineWidth=2
</div>
<div>
BorderWidth=0
</div>
<div>
Xpm="0 0 2 0"
</div>
<div>
"1 c #BD9541"
</div>
<div>
"2 c #000000"
</div>
<div>
String1=0x04,Way
</div>
<div>
ExtendedLabels=N
</div>
<div>
[end]
</div>
<div>
<br>
</div>
<div>
[_line]
</div>
<div>
Type=0x016
</div>
<div>
;GRMN_TYPE: Roads/TRAIL/Walkway or trail/Non NT, NT
</div>
<div>
UseOrientation=Y
</div>
<div>
Xpm="32 1 2 1"
</div>
<div>
"! c #808080"
</div>
<div>
" c none"
</div>
<div>
"!!!! !!!! !!!! !!!! !!!! !!"
</div>
<div>
;12345678901234567890123456789012
</div>
<div>
String1=0x04,Path
</div>
<div>
ExtendedLabels=N
</div>
<div>
[end]
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
--
</div>
<div>
Niccolo Rigacci -
<a href="http://www.rigacci.net/" rel="noopener" target="_blank">http://www.rigacci.net/</a>
</div>
<div>
Campi Bisenzio - Firenze - Italy
</div>
<div>
Tel. Mobile: +39-327-5619352
</div>
<div>
_______________________________________________
</div>
<div>
mkgmap-dev mailing list
</div>
<div>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
</div>
<div>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noopener" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a>
</div>
</blockquote>
</body>
</html>