logo separator

[mkgmap-dev] element type definition as variable

From demon.box e.rossini73 at alice.it on Mon Nov 27 10:29:16 GMT 2017

Hi Gerd, thanks very much for your attention and patience... ;-)

I'm testing this 3 ways:

Via Ermanno Margheriti

Via Maniva

Via Trento

This is my only simply style for this test:

highway=* & name=* & (route_name=* | ref=*) {name '${name}'} [0x09
road_class=0 road_speed=1 resolution 24 continue]

highway=* & 
	route_type ~ '.*hiking.*'
	'${route_ref1|highway-symbol:oval} ${route_name}' | 
	'${route_ref1|highway-symbol:oval}' | 

(highway=secondary | highway=secondary_link) & surface=asphalt
	'${ref|highway-symbol:hbox} ${route_name}' | 
	[0x04 road_class=2 road_speed=2 resolution 22 continue]

name=* {name '${name}'}

type=route & (route=hiking) { 
	apply { 
		set route_type='$(route_type), ${route}' | '${route}';
		set route_ref1='$(route_ref1), ${ref}' | '${ref}';
		set route_name='$(route_name) | ${name}' | '${name} (${alt_name})' |

and this is the result with --preserve-element-order option:

Via Ermanno Margheriti

Via Maniva

Via Trento

and this is the result without --preserve-element-order option:

Via Ermanno Margheriti

Via Maniva

Via Trento

Finally I mean... how can I display the name always for first?



Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html

More information about the mkgmap-dev mailing list