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

Display none to Line Feature, become black stroke line #47

Open
malvinpatrick opened this issue Jul 8, 2021 · 1 comment
Open

Display none to Line Feature, become black stroke line #47

malvinpatrick opened this issue Jul 8, 2021 · 1 comment

Comments

@malvinpatrick
Copy link

Hello, I was trying hide my line on openlayer
VectorFeature vector = routeLayer.getFeatureById(vDay.getId().toString());
vector.setStyle(new Style("{display: none}"));

But why I got this "black" line ?? I have to refresh the layer.
image

@malvinpatrick malvinpatrick changed the title Set Display none to Line Feature Display none to Line Feature, become black stroke line Jul 8, 2021
@TDesjardins
Copy link
Contributor

@malvinpatrick What do you want to achieve? Actually the Style class hasn't such constructor and the style hasn't such properties (see http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Style-js.html).

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

No branches or pull requests

2 participants