Ticket #2608 (closed bug: fixed)
external graphics not displayed when drawing after linestring
| Reported by: | arno | Owned by: | fredj |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.10 Release |
| Component: | Renderer.Canvas | Version: | 2.9 |
| Keywords: | Cc: | ||
| State: | Complete |
Description
Hi, when drawing a linestring, then a point whose style has externalGraphic property, external graphic is not displayed if linestring is drawn just before (or just after). That's because after drawing a line string, canvas style is reset, ie: globalAlpha is set to 0.
Before drawing image (by calling this.canvas.drawImage), globalAlpha is not set back. Then image is drawn with alpha 0, and therefore does is not displayed.
See testcase http://renevier.net/bugs/ol_canvas_extgraph.html a linestring and two points are drawn. With canvas backend, points are not drawn; with svg, points are drawn.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

