[BUG and PATCH] Use of overlay style file breaks routing, fix attached

When using the overlays style file it will break the routing of the map. The reason seems to be that if routable ways are overlayed they get added several times as routable ways. The attached patch will add only the first overlay type as a routable way and the other overlay types as lines. It will also copy the list of points instead of just passing on the pointer (don't know whether that is necessary). By the way: when experimenting with overlays I can not control which line of the overlay is painted first, it seems to change randomly. Anybody has an idea why this is so? The LineAdder gets the ways always in the same order. Does they get mixed up somewhere in mkgmap or does the GPS unit do some strange stuff? Regards Thilo
participants (1)
-
Thilo Hannemann