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

Overlay lost at full opacity #20

Open
fuatsengul opened this issue Nov 10, 2014 · 5 comments
Open

Overlay lost at full opacity #20

fuatsengul opened this issue Nov 10, 2014 · 5 comments
Labels

Comments

@fuatsengul
Copy link

Hi,
I'm struggling with a strange problem,
If I set polyline opacity to 1.0, texts getting lost.
How can we fix this?

@leplatrem
Copy link
Collaborator

Hi, thanks for reporting this !

Could you check with the browser inspector if the text element is present, or what attribute causes its loss? Or could you reproduce the problem with a jsfiddle or equivalent please? If you don't know what I'm talking about, don't worry, we'll investigate, but it might take longer :D

@fuatsengul
Copy link
Author

OK, I will reproduce it in at jsfiddle in few hours. But I can say that, paths fading when I increase polyline opacity, I couldn't check with inspector yet, but I'm assuming paths are there but there's some overlapping issue.

@fuatsengul
Copy link
Author

Here is the jsfiddle example:
http://jsfiddle.net/5d3owLdw/3/

I found the problem, but couldn't solve yet.
SVG objects was showing by code order, so if we put the textpaths after line codes, problem will be solved.

@leplatrem
Copy link
Collaborator

Excellent thanks :)

So, it is a problem of z-order. The texts are below the line, which is problematic indeed.

With the inspector, if I move the svg node below the line, text appears well.

selection_488
selection_489

@leplatrem leplatrem added the bug label Nov 12, 2014
@leplatrem
Copy link
Collaborator

Not that it is also reproduced in the demo actually ! (see the blue line)
And that calling setText() before or after addTo(map) seems to have no incidence...

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

No branches or pull requests

2 participants