Author Topic: Theme developing question  (Read 31603 times)

Offline 0n1y

  • More than Newbie
  • *
  • Posts: 10
    • View Profile
  • Device: Moto G
Re: Theme developing question
« Reply #105 on: October 23, 2014, 15:58:39 »
I don't get it anyway. ;D
 

Offline popej

  • More than Newbie
  • *
  • Posts: 39
    • View Profile
    • GMapTool
Re: Theme developing question
« Reply #106 on: October 25, 2014, 17:46:48 »
I have updated my map of Poland:
http://www.gmaptool.eu/en/content/locus-poland-osm

Map include some new tags, as requested by Wojtas82.

Marked tralis are drawn without swapping direction on successive ways.

For bicycle routes with icn/ncn/rcn/icn network I have added new tags: "instance:icn", "instance:ncn", "instance:rcn", "instance:lcn". These tags indicate second and next trail drawn on a way. Values for tags can be: [2..9,x], where "x" means 10-th and next instances. These tags can be used to change graphics or text position for multiple trails.
« Last Edit: October 25, 2014, 22:57:41 by popej »
popej
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #107 on: October 25, 2014, 20:41:15 »
Wow Popej, thanks very much, now I have plenty to do! :) Will post progress as soon as possible :)
 

Offline JoxM

  • More than Newbie
  • *
  • Posts: 91
  • Thanked: 6 times
    • View Profile
Re: Theme developing question
« Reply #108 on: October 26, 2014, 08:39:44 »
Hi again,
don't know if this question was asked before.
Is it possible to get a night (dark) colour for the menus?
Because if you're using the night colour for the map and you need to enter into a menu the white background is too light.
 

Offline voldapet

  • Administrator
  • Padavan of Locus
  • *****
  • Posts: 495
  • Thanked: 12 times
    • View Profile
Re: Theme developing question
« Reply #109 on: October 27, 2014, 08:29:35 »
@JoxM
It's little bit out of topic :) Anyway there is already similar feature request on http://help.locusmap.eu/responses/support_amoled  Unfortunately this ideas is declined at this moment because it's quite difficult to implement it. However you can vote for it :)
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #110 on: October 27, 2014, 09:07:04 »
@ Popej, I made some test and here's a problem I'm experiencing. Bike routes should be on "one side" not dependend on road direction but here's a result :


Here's the spot on OSM :
http://www.openstreetmap.org/#map=18/54.50005/18.47150&layers=C

As you can see blue line changes side of the road when switching from residential road to footpath. Maybe it should be like this? Thanks in advance for explanation :)

EDIT:
I also hoped we could have bicycle routes at only one side (on the right side of direction) and hiking/foot routes on the left side. Now they appear randomly on right or left. That would look nicer on the map, we could have bicycle routes at, let's say dy=-20 and hiking on the other side of the road at dy=20.
:)

« Last Edit: October 27, 2014, 09:10:28 by Wojtas82 »
 

Offline jusc

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 1895
  • Thanked: 20 times
    • View Profile
  • Device: Samsung Galaxy S2 and Note 2
Re: Theme developing question
« Reply #111 on: October 27, 2014, 09:44:00 »
@Wojtas82,

as I understood you want to create a cycle theme at first.
Why do you want to implement cycle routes and hike routes together in one theme? And why not devide the themes?
If you are cycling you donĀ“t want to think about: "Is this a cycle or a hike route?" (At least for me  ;D )
Regards J.
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #112 on: October 27, 2014, 10:00:35 »
@jusc
You're right but combining both types of routes (bike and hike) is good for orientation. Here where I live, there are mostly hiking routes which are very often suitable for biking. I would like to achieve 3 themes: hiking, biking and hike and biking :)
So that's why :)
 

Offline popej

  • More than Newbie
  • *
  • Posts: 39
    • View Profile
    • GMapTool
Re: Theme developing question
« Reply #113 on: October 27, 2014, 12:57:37 »
@ Popej, I made some test and here's a problem I'm experiencing. Bike routes should be on "one side" not dependend on road direction but here's a result :
Nobody's perfect ;)
I don't make a full analysis of relation, I assume that relation is created correctly as an ordered list of ways. I follow this order and swap direction of ways as necessary. In your example relation has its ways out of order, which breaks analysis.

I also hoped we could have bicycle routes at only one side (on the right side of direction) and hiking/foot routes on the left side. Now they appear randomly on right or left.
This requirement is in conflict with continuous lines. You can't have both at once.
popej
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #114 on: October 27, 2014, 13:06:11 »
I also noticed that instance tag works fine when you have 2 or more routes of the same kind (i.e. 3 lcn routes get 3 different numbers) the you can set different "dy" attribute for them and nicely display them like this:


but if you have 1 lcn and 1 ncn on same road they receive same numbers and path text overlaps.
@ Popej, maybe the solution is to put bike routes in one bag like this "instance:bicycle"? so all the routes on a part of the road become equivalent and receive different instance number? How do you think?

EDIT:
Here's a part of a code I ised for lcn's.
Code: [Select]
<rule e="way" k="route" v="bicycle">
<rule e="way" k="network" v="*">
<rule e="way" k="network" v="lcn">
<rule e="way" k="instance:lcn" v="~">
<pathText k="name"  font-style="bold" font-size="14"  dy="-20" scale-font-size="17,1.15" font-family="monospace"  fill="#000000" stroke="#ffffff" stroke-width="3.5" />
</rule>
<rule e="way" k="instance:lcn" v="2">
<pathText k="name"  font-style="bold" font-size="14"  dy="-40" scale-font-size="17,1.15" font-family="monospace"  fill="#000000" stroke="#ffffff" stroke-width="3.5" />
</rule>
<rule e="way" k="instance:lcn" v="3">
<pathText k="name"  font-style="bold" font-size="14"  dy="-60" scale-font-size="17,1.15" font-family="monospace"  fill="#000000" stroke="#ffffff" stroke-width="3.5" />
</rule>
<rule e="way" k="instance:lcn" v="4">
<pathText k="name"  font-style="bold" font-size="14"  dy="-80" scale-font-size="17,1.15" font-family="monospace"  fill="#000000" stroke="#ffffff" stroke-width="3.5" />
</rule>
<rule e="way" k="instance:lcn" v="5">
<pathText k="name"  font-style="bold" font-size="14"  dy="-100" scale-font-size="17,1.15" font-family="monospace"  fill="#000000" stroke="#ffffff" stroke-width="3.5" />
</rule>
</rule>
</rule>
</rule>

 

Offline popej

  • More than Newbie
  • *
  • Posts: 39
    • View Profile
    • GMapTool
Re: Theme developing question
« Reply #115 on: October 27, 2014, 13:09:53 »
@ Popej, maybe the solution is to put bike routes in one bag like this "instance:bicycle"?
No problem. Just test a bit current version and then precise your requirements, I'll adopt ;)
popej
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #116 on: October 27, 2014, 13:12:51 »
Already done :D
BTW This option is great! Thanks in advance! :)
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #117 on: October 27, 2014, 22:35:50 »
Some progress




 

Offline popej

  • More than Newbie
  • *
  • Posts: 39
    • View Profile
    • GMapTool
Re: Theme developing question
« Reply #118 on: October 31, 2014, 01:50:58 »
New version of my map: http://www.gmaptool.eu/en/content/locus-poland-osm

I have changed "instance" tags, now trails are grouped in 4 categories, for each category there is a "instance" tags. New tags are following:
"instance:cycle" for bicycle and mtb trails,
"instance:hiking" for hiking, foot, walking and nordic_walking trails,
"instance:winter" for ski, piste and sled trails,
"instance:other" for other trails like horse trails.

Values for "instance" keys remain the same - "2" to "9" and "x".
popej
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #119 on: November 03, 2014, 20:56:36 »
Thanks a lot Popej. I'm a little busy lately but will I will try to find some extra time. :)