You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2013-12-15 11:03:52

gspeed
Member
Registered: 2011-02-15
Posts: 22

Border lines too fat in Automotive Mode view

Hi, I'm playing with typ files (using Typviewer) and I noticed a difference on how ways with borders are rendered if compared with the default style, no matter if I define the line border as "BorderWidth=1" it seems the border is rendered too thick when in automotive mode.

Maps are generated with lates mkgmap, same behavour on my Montana and Nuvi-

without specifying any typ file:
hyp3.png

with my  typ file, look at how residential roads (Type=0x06) have thick borders:
8jti.png

Any hint?

On the other side, when looking at the map overview, ways are rendered with borders as thin as I defined them, also the line width is exaclty as thick as I defined while in the default style it seems to scale appropriately based on the zoom level)
So it seems the way lines  are rendered scales in a different way when I use a custom typ.

Thanks!

Here is how the residential (Type=0x06) is defined:

[_line]
Type=0x06
UseOrientation=Y
LineWidth=1
BorderWidth=1
Xpm="0 0 4 0"
"1 c #FAFAFA"
"2 c #999999"
"3 c #888888"
"4 c #555555"
String1=0x04,Residential
String2=0x00,Residential
ExtendedLabels=N
[end]

Last edited by gspeed (2013-12-15 11:05:47)

Offline

#2 2013-12-15 12:59:55

popej
Member
Registered: 2008-09-20
Posts: 500
Website

Re: Border lines too fat in Automotive Mode view

By "automotive view" you probably mean quasi-3D view? You can switch it on/of in settings.

Your problem is not about 3D view but about your particular device. New nuvis have this behavior. They scale roads without border according to zoom level. Outdoor devices don't do it. Other peculiarity is that nuvi support themes, which can be used to scale roads width, even for roads with borders defined in TYP file.


popej

Offline

#3 2013-12-16 07:26:49

gspeed
Member
Registered: 2011-02-15
Posts: 22

Re: Border lines too fat in Automotive Mode view

"Automotive mode" view is the view in the screenshots above, i.e. The one usually used when navigating on a veichle. The behaviour above is the same in my montana or a pretty old nuvi: Roads are scaled in both pictures, however you can see how thick are borders for residentials ways when using my style, although i'm setting 1 pixel width. I'll have a look at themes, thanks

Offline

#4 2013-12-16 13:03:11

popej
Member
Registered: 2008-09-20
Posts: 500
Website

Re: Border lines too fat in Automotive Mode view

In "automotive mode" GPS is trying to picture map in quasi 3D view, where picture is magnified at bottom and shrunk at the top. Roads and borders are changed accordingly. Since you have defined road width as 1 pixel and border as 1 pixel too, these proportions are maintained when resizing picture. Yes, this processing is the same for all models. If you don't like it, change "automotive mode" to standard 2D.

When there is no definition in TYP, GPS decides how to draw a line. This is where you can observe thin border regardless of picture scaling. Roads without TYP definition change their width according to scale in 2D mode too but roads defined in TYP maintain their look and width regardless of scale. New nuvis add one change in processing of TYP definition. If you define a road in TYP as a line without borders, then width of this road is is scaled in 2D mode too.

Last edited by popej (2013-12-16 13:08:17)


popej

Offline

#5 2013-12-16 21:46:31

gspeed
Member
Registered: 2011-02-15
Posts: 22

Re: Border lines too fat in Automotive Mode view

ok - got it. So there is not a (known) way  to  create a map with custom street colors but preserving the very same "scaling behaviour" (both for 2D and 3D) and border thickness of "vanilla" maps.

Thanks for the explaination.

Offline

Board footer

Powered by FluxBB