Opened 8 years ago

Closed 8 years ago

#739 closed defect/bug (fixed)

T@H Layout: layers order fails some time

Reported by: chrispzv Owned by: KaZeR
Priority: major Milestone:
Component: core Version: git master
Severity: Keywords:
Cc: navit-project.org@…, http://wiki.navit-project.org/index.php/user:korrosa, nick@…

Description

There seems to be s bug about displaying layers in the right order with T@H layout as an very good describing example I append these screenshots and a link to google maps of that point. (Permalink of planet extractor does not work though. :-( http://maps1.navit-project.org/?zoom=16&lat=53.79272&lon=10.75658&layers=B00T)

Google Maps link: http://maps.google.de/?ie=UTF8&t=h&ll=53.792831,10.755572&spn=0.00649,0.021136&z=16

Attachments (3)

screenshot_CAR.png (46.8 KB) - added by chrispzv 8 years ago.
using CAR (CAR-DARK as well) does work
screenshot_T@H.png (72.8 KB) - added by chrispzv 8 years ago.
using T@H layout fails to display that map point the right way
navit.xml.patch (989 bytes) - added by korrosa 8 years ago.

Download all attachments as: .zip

Change History (8)

Changed 8 years ago by chrispzv

using CAR (CAR-DARK as well) does work

Changed 8 years ago by chrispzv

using T@H layout fails to display that map point the right way

Changed 8 years ago by korrosa

comment:1 Changed 8 years ago by korrosa

You're right. This is because polygons for poly_flats, poly_scrub, poly_military_zone, poly_marine, plantation and tundra are lower down in the xml file than the roads, which means they appear on top. In your example, the area is "scrub", or natural=scrub in OSM parlance.

I've attached a patch which moves those polygons up the list (and below the roads). If you know how to use a patch then this should be fine. If you don't, go into your navit.xml and find the following lines:

<itemgra item_types="poly_flats,poly_scrub,poly_military_zone,poly_marine,plantation,tundra" order="0-">
	<polygon color="#a0a0a0"/>
	<text text_size="5"/>
</itemgra>

and move them to just below the following:

<!-- landuse=forest -->
<itemgra item_types="poly_wood" order="0-">
	<polygon color="#72bf81"/>
</itemgra>

comment:2 Changed 8 years ago by chrispzv

  • Resolution set to fixed
  • Status changed from new to closed

I applied these changes manually, 'cause I made T@H layout the default one (moved it up, before "CAR"). I would call it a working bugfix. Thank you!

comment:3 Changed 8 years ago by korrosa

  • Cc http://wiki.navit-project.org/index.php/user:korrosa added
  • Resolution fixed deleted
  • Status changed from closed to reopened

Thanks for checking!

I've re-opened this ticket as I do think this is still a bug, and needs to be fixed in the Navit trunk. Once the patch is applied to the tree I'll close it again.

comment:4 Changed 8 years ago by number6

  • Cc nick@… added

Added in Revision 3927

comment:5 Changed 8 years ago by number6

  • Resolution set to fixed
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.