We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Since line-pattern is not supported, I personally used createPattern (https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern), but the problem was that the image was not drawn along the line.
However, I confirmed that the line pattern is drawn normally in the webgl version (https://openlayers.org/en/latest/examples/webgl-draw-line.html). Are you planning to support ol-mapbox-gl webgl version?
The text was updated successfully, but these errors were encountered:
ol-mapbox-style uses the Canvas 2D renderer. Support for line patterns is planned for the Canvas 2D renderer.
Sorry, something went wrong.
Is it possible to draw in the corresponding direction along a line on a 2D canvas?
Yes, using a transform and doing separate stroke() operations for each segment.
No branches or pull requests
Since line-pattern is not supported, I personally used createPattern (https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern), but the problem was that the image was not drawn along the line.
However, I confirmed that the line pattern is drawn normally in the webgl version (https://openlayers.org/en/latest/examples/webgl-draw-line.html).
Are you planning to support ol-mapbox-gl webgl version?
The text was updated successfully, but these errors were encountered: