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

Incorrect dasharray value #48

Open
3zzy opened this issue Jul 17, 2018 · 0 comments
Open

Incorrect dasharray value #48

3zzy opened this issue Jul 17, 2018 · 0 comments

Comments

@3zzy
Copy link

3zzy commented Jul 17, 2018

cartocss = "{ line-color: #7B00B4; line-width: 1; line-opacity: 0.7; line-dasharray: 4,2; }";
shader = new carto.RendererJS().render(cartocss),
style = shader.layers[0].getStyle({ property: 1 }, { zoom: zoom });

console.log({shader, style}); 

Value returned for the dasharray is just 4 instead of 4,2. Am I missing something?

Also, in the example on the homepage, the getStyle method takes the first argument { property: 1 } what does that mean?

Thanks

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

1 participant