Author Topic: Theme developing question  (Read 30256 times)

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #75 on: October 14, 2014, 23:59:56 »
After many test I was able to display parallel lines but sometimes parts of them are missing randomly like here.

When dy is set to 0 the whole route is displayed properly...
Code: [Select]
<rule e="way" k="osmc_color" v="red">
<line stroke="#FF0000" priority="40" force-draw="1" dy="16" stroke-linejoin="round" stroke-width="1" stroke-linecap="round" />
</rule>
Here's a link to OSM
http://www.openstreetmap.org/way/184490078
Any one knows solution?
« Last Edit: October 15, 2014, 00:02:47 by Wojtas82 »
 

Offline jusc

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 1898
  • Thanked: 20 times
    • View Profile
  • Device: Samsung Galaxy S2 and Note 2
Re: Theme developing question
« Reply #76 on: October 15, 2014, 07:44:40 »
@Wojtas82,

I made the same experiences and I think, it´s beacause "dy=" ist not usable with ways at this time. It´s a part of Mapsforge or Locus.
Regards J.
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11758
  • Thanked: 398 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Theme developing question
« Reply #77 on: October 15, 2014, 08:06:39 »
you found experimental feature :). DY parameter for ways is currently in testing anyway it's not yet fully working, so don't use it
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #78 on: October 15, 2014, 08:28:32 »
Thanks! Any estimated date of implementation Menion
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11758
  • Thanked: 398 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Theme developing question
« Reply #79 on: October 15, 2014, 08:34:15 »
it's not so simple, so don't expect it soon. Sorry.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #80 on: October 15, 2014, 08:47:09 »
Oh thats a shame. This feature gives a lot of possibilities.
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11758
  • Thanked: 398 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Theme developing question
« Reply #82 on: October 15, 2014, 13:17:03 »
Understand. Locus anyway do not use new version of MapsForge library, but just older version 0.3 with own improvements. So some new tags won't work in Locus. Sorry.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline jusc

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 1898
  • Thanked: 20 times
    • View Profile
  • Device: Samsung Galaxy S2 and Note 2
Re: Theme developing question
« Reply #83 on: October 18, 2014, 17:48:30 »
Thank you
@menion for implementig "dy for ways"
and thank you
@popej for creating a map that can be used for testing this new feature.
Unfortunately the "dy"-lines sometimes are on the right, sometimes on the left, or sometimes above or below the ways.
Depends it from the direction the way is drawn?
 

Regards J.
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11758
  • Thanked: 398 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Theme developing question
« Reply #84 on: October 19, 2014, 07:51:29 »
yes it depends. How this may happen (on your screenshot)? Is it possible, that lines are draw in OSM data in opposite direction here?
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline jusc

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 1898
  • Thanked: 20 times
    • View Profile
  • Device: Samsung Galaxy S2 and Note 2
Re: Theme developing question
« Reply #85 on: October 19, 2014, 15:26:42 »
Yes the north part of thy way between Bühne and Suderode is drwan from north to south. the south path from south to north.
In the theme, the icn has dy="-10" for test.
Regards J.
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11758
  • Thanked: 398 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Theme developing question
« Reply #86 on: October 19, 2014, 16:25:15 »
hmm then there is nothing I can do with it now ...
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #87 on: October 19, 2014, 17:04:32 »
These parallel lines look very nice Jusc. Very useful when you have a hiking route and i.e. 2 bicycle routes. You can easly follow the route you want.
 

Offline jusc

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 1898
  • Thanked: 20 times
    • View Profile
  • Device: Samsung Galaxy S2 and Note 2
Re: Theme developing question
« Reply #88 on: October 19, 2014, 17:24:42 »
Yess, but you see the problem? Sometimes the lines change the side of the way, because it depends on how the way is drawn, from south to north, east to west or vice versa.
I hoped I could show parallel cycle routes (icn,ncn and so on) but I fear that is not really possible.
Regards J.
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #89 on: October 19, 2014, 17:28:37 »
Yeah, exactly I also noticed it. But I don't see a solution for this one unless dy parameter is added to the whole route not the part of the road. You know what I mean? I'm not sure. Maybe google "osmapa szlaki" and check this map I heard they tried to solve this problem?