Hi Niccolo,

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]


level 20 is zoom out very far. Try 0:24,1:23,2:22......


Greetz

Arndt
Niccolo Rigacci < [email protected]> hat am 4. April 2020 um 15:12 geschrieben:


Hi to all,

I'm trying to create a map for an old eTrex 10 Garmin device.
Everything works fine, but I don't understand how to make a
custom TYP file that will render roads differently at different
scales.

This is my mkgmap invokation:

mkgmap \
--reduce-point-density=4 --unicode \
--description="$DESCRIPTION" \
--style-file='./styles/default/' \
--country-name='Italy' --country-abbr='I' \
--region-name='Toscana' \
--family-id=9999 \
--gmapsupp 63240*.osm.pbf \
./typ/my_etrex10.txt

as you can see I have customized the default style and I have
provided a custom TYP file to override only _line Type=0x006 and
Type=0x016 rendering. My style defines four levels:

levels = 0:24, 1:20, 2:19, 3:18

The problem is that my custom TYPs are applied the same at any
level (scale), whereas the default TYP are scale-dependant (e.g.
secondary roads are rendered gradually thicker when zooming in).

This is my TYP file, indeed there are no scale-dependant rules!
Am I missing something in the TYP syntax?

[_line]
Type=0x006
;GRMN_TYPE:
UseOrientation=Y
LineWidth=2
BorderWidth=0
Xpm="0 0 2 0"
"1 c #BD9541"
"2 c #000000"
String1=0x04,Way
ExtendedLabels=N
[end]

[_line]
Type=0x016
;GRMN_TYPE: Roads/TRAIL/Walkway or trail/Non NT, NT
UseOrientation=Y
Xpm="32 1 2 1"
"! c #808080"
" c none"
"!!!! !!!! !!!! !!!! !!!! !!"
;12345678901234567890123456789012
String1=0x04,Path
ExtendedLabels=N
[end]


--
Niccolo Rigacci - http://www.rigacci.net/
Campi Bisenzio - Firenze - Italy
Tel. Mobile: +39-327-5619352
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to