logo separator

[mkgmap-dev] Location not working in trunk default style

From Steve Ratcliffe steve at parabola.me.uk on Fri Nov 25 19:12:51 GMT 2011

Hi

I discovered that the location tags (mkgmap:city and so on) are not
working in the default style and the reason involves the way that 
base-style works.

It prepends the rules in the current style before the rules in the base 
style. This allows rules in the current style to override rules in the 
base-style as you would expect.

However, if you have an action-only rule then it will never be seen if
a real rule in the current style matches first. So putting all the
location actions in a base-style does not work.

Solutions? My ideas:

First in the particular case of location, address and perhaps access
tags I think that they should be separate file(s).  The very fact that
the same rules are repeated in lines, points and polygons, strongly
indicates that they should be separated.
They could be placed in one file, which would be used
by each of the different geometry types.

Second, perhaps there is a need for two commands include-before and
include-after which allow you to do the inclusion either way as
appropriate for the situation.

..Steve



More information about the mkgmap-dev mailing list