-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ol.style.Image classes should defer rendering to the layer renderer #5775
Comments
Also see #5748. |
Agreed. It would be nice if the AtlasManager became a WebGL specific thing. |
@wglas85, if you want to work on this, here is a brief outline of what I have in mind: 1. Create a new
|
@ahocevar could you please tell me how to temporarily activate the immediate canvas renderer, so I can start by implementing this bare-bone render without having to tackle all the replay complexities? |
You won't need to touch any code inside functions of the replay or immediate APIs. This change would be mostly about removing all rendering code from ol.style.RegularShape, and replacing it with ol.render.toContext calls in the functions I listed above (which are both higher level than the immediate and replay APIs. |
@ahocevar I have performed first steps on this issue, there need some topics to be discussed, I'm going to arrange a meetup... |
…ion an geometry shapes.
@ahocevar I made some more progress, we still have to decide on some topics, most notable the software layer at which we render the shapes to pixels, when needed and which scaling to apply... |
…ion an geometry shapes.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Currently
ol.style.Image
subclasses render an image to an AtlasManager. Instead, layer renderers should decide what to do with the information stored in an Image style. For example in the case ofol.style.Circle
, the Canvas renderer could more efficiently just render a circle with the provided radius, fill and stroke, instead of the style having to add an image to the AtlasManager for every radius-fill-stroke combination.The text was updated successfully, but these errors were encountered: