Theme developing question

Started by jusc, May 11, 2014, 17:12:00

0 Members and 1 Guest are viewing this topic.

Wojtas82

#75
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...
<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?
  •  

jusc

@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.
  •  

Menion

you found experimental feature :). DY parameter for ways is currently in testing anyway it's not yet fully working, so don't use it
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

Wojtas82

Thanks! Any estimated date of implementation Menion
  •  

Menion

it's not so simple, so don't expect it soon. Sorry.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

Wojtas82

Oh thats a shame. This feature gives a lot of possibilities.
  •  


Menion

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.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

jusc

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.
  •  

Menion

yes it depends. How this may happen (on your screenshot)? Is it possible, that lines are draw in OSM data in opposite direction here?
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

jusc

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.
  •  

Menion

hmm then there is nothing I can do with it now ...
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

Wojtas82

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.
  •  

jusc

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.
  •  

Wojtas82

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?
  •