Tricks & Tips with mkgmap styles 4
Echotags
Echotags can be used to
- inform you about highways,polygons & pois found/not found in your style sheets
- check the values , if any, of variables
How to add echotags to your style sheets
Your style sheets may have been parsed without JAVA errors but the results may defy your expectations.
Echotags are like messages you can insert in your code to give you a list of all the variable values used by mkgmap.They are very useful for isolating the cause of a problem in your style sheets
Example:
highway=track { echotags "This is a track"}
highway=* {echotags "Give me all the highways"}
highway=* & foot!=yes {echotags "highways with no pedestrian access"}
There is a strange 'feature' (bug?) in that you cannot use != on its own ie |
foot!=yes {echotags "Show any line with no pedestrian access"} |
The above line causes mkgmap to error so you always have to think of another condition |
highway=* & foot!=yes {echotags "highways with no pedestrian access"} |
Examples
SHOW ME ALL THE HIGHWAYS NOT LISTED IN MY STYLE SHEET
SHOW ME ALL SHOPS NOT LISTED IN MY STYLE SHEET
SHOW ME ALL THE HIKING/CYCLING ROUTES WITHOUT A REF
SHOW ME ALL THE BERLIN/PARIS SUBWAY ROUTES