Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render themes: stroke dash array #131

Closed
stleusc opened this issue Aug 15, 2016 · 9 comments
Closed

Render themes: stroke dash array #131

stleusc opened this issue Aug 15, 2016 · 9 comments
Milestone

Comments

@stleusc
Copy link

stleusc commented Aug 15, 2016

not much else to say ;-)

@devemux86
Copy link
Collaborator

devemux86 commented Aug 15, 2016

We have line stipples implemented in #105, a good base for that.

Reference opensciencemap#3

@devemux86 devemux86 changed the title render style dasharray is not supported for mapsforge maps Render themes: style dasharray is not supported Aug 15, 2016
@Klaus-Tockloth
Copy link

Dashed lines are very important in maps. Stipples aren't a surrogate for dashed lines because the underlaying object is always overwritten. Sometimes this ok but in most times it isn't. See example:

bildschirmfoto 2016-10-29 um 20 45 26

@devemux86
Copy link
Collaborator

the underlaying object is always overwritten

@Klaus-Tockloth what do you mean?
We can use transparency in stipples too.

@Klaus-Tockloth
Copy link

What I want to achieve is this: A short line followed by a gap followed by a short line and so one. In the gap one sees the underlaying object. In the picture above this is the wood area (with the tree symbols). My understanding of the stipples feature is, that you always have a solid line, and on top of this line you draw the stipples. If you make the stipples semitransparent you see the underlaying solid line but not the underlaying wood. Right?

PS: For a railway stipples are a possible option, but for the track (brown line) they are not.

@devemux86
Copy link
Collaborator

devemux86 commented Oct 29, 2016

We can have in stipples the stroke color semi or completely transparent, see here.

Still this pattern doesn't have the flexibility of dasharray's various combinations.

@devemux86 devemux86 changed the title Render themes: style dasharray is not supported Render themes: stroke dash array Sep 3, 2017
@devemux86 devemux86 added this to the 0.9.0 milestone Sep 3, 2017
@devemux86
Copy link
Collaborator

Thanks to PR #388 by @Longri for Mapsforge theme compatibility, we now have an implementation of line stroke dash array also in VTM themes.

@andreynovikov
Copy link

dasharray in style-line does not work. If I put it there no line is drawn at all, if I remove it, solid line is drawn. If I put dasharray in line it is still not drawn. If I remove dasharray from style-line it is drawn correctly.

@andreynovikov
Copy link

fix="true" seems not to be honored too.

Repository owner deleted a comment from andreynovikov Sep 26, 2017
@devemux86
Copy link
Collaborator

@andreynovikov thanks for the report!
See if latest update handles the issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants