logo separator

[mkgmap-dev] overlays file for POIs

From Felix Hartmann extremecarver at googlemail.com on Sat Jan 16 18:37:01 GMT 2010

Hi, would it be possible to integrate an overlays file for POIs? The 
current overlays file (inside the style-file) only works for polylines. 
I would like to do the same for POIs. (I don't think it is needed for 
polygons, but maybe someone has creative ideas in his head and would 
like to have it for polygons too).

I don't manage to program this, but I hope that it proves easy as we 
already have that functionality for lines. Would be great if it could be 
integrated. I tried to do it by using "continue" but this does not work. 
(continue will only work if the key or value is different).

This does not work currently either (and the overlays function would be 
much better for this example anyhow):
rcn_ref=10    [0x1800 resolution 22 continue]
rcn_ref=10    [0x1701 resolution 22]


*For what could we use it?*

*1.* By creating invisible POIs and a visible point one could have 
different icons for different POIs however they would still be found 
under the same category.
e.g. we know that 0x2f08 is found under transport --> ground 
transportation. We would like to have different symbols for a tube 
entrance, a bus_station a bus_halt,.... but would like all of them to 
show up under the search for ground transportation.
so I would like to have in my "points" file the following entries:

railway=subway_entrance         { name 'tube ${name} ${ref}' | 'tube 
${ref}' | 'tube ${name}' | 'tube' } [0x2f0801 resolution 22]
railway=tram_stop                 { name 'tram_stop ${name} 
${tram_lines} ${ref}' | 'tram_stop ${name}'} [0x2f0802 resolution 23]
amenity=bus_stop                 { name 'bus_stop ${name} ${ref} 
${bus_lines} ${operator}' | 'bus_stop ${name}' | 'bus_stop'} [0x2f0803 
resolution 24]
.....

now we know there are no 6 digit points code, therefore in our new 
pointsoverlay file we put
0x2f0801: 0x2f08, 0x1700
0x2f0802: 0x2f08, 0x1701
0x2f0803: 0x2f08, 0x1702


in our typfile we make 0x2f08 invisble, and create 3 nice icons to have 
a different layout for the different POI.

*2.* In the netherlands and some other countries there are nodes with a 
number from 0-99 that are part of a cycle node network. I would like to 
display these points with an icon showing the number(and that is the 
real problem I face).
We could add nice icons showing a number for rcn_ref=*
* being a number from 0-99 (if it is 0-999 it would make even more 
sense).  Currently I would have to create 100 different icons in my 
.TYPfile to be able to put a numbers from 0-99 on my map. If we had an 
overlays file I can reduce this to 20 icons in my Typfile and it would 
use only 20 ids instead of 100. (by having one icon for the "decimal 
number", and one icon for the right number). They should be displayed 
side by side by making half of the icon transparent, once to the left, 
once to the right.

The same could be done for housenumbers (imagine designing 1000 entries 
in the typfile for numbers from 0-999, and only 30 if we would have an 
pointsoverlay file).

*3.* we have the same for polylines and it has proven very useful. The 
overlays file currently only works for lines.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20100116/0f307c51/attachment.html 


More information about the mkgmap-dev mailing list