{"action":"opened","issue":{"number":312,"created_at":"2011-10-11T07:48:03Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Let's say I want to render a semi-transparent street overlay to render on top of an aerial image, and that I want to have the following layers:\r\n\r\n- Aerial image\r\n- Street overlay\r\n- Labels and point symbols\r\n\r\nI would like the street overlay layer to be semi-transparent. If the individual symbolizers are semi-transparent, lots of rendering artifacts will appear:\r\n- Road casing and road fill will clash - the road casing will be visible through the road fill, and the road fill will be more opaque than the border.\r\n- Crossroads will be more opaque than the individual roads, as all roads will be rendered on top of each other.\r\n\r\n\r\nThus, the solution to this problem would be to have two new parameters for every layer: opacity and compositing mode.\r\n\r\nEvery layer should get its own canvas; once all elements in a layer have been rendered, that layer canvas is composed on top of the canvas for the resulting image.\r\n\r\nFor bonus points, instantiate canvases only for layers with 1.0 opacity and normal compositing, in order to not waste memory.","comments":0,"title":"Per-layer opacity and compositing","updated_at":"2011-10-11T07:48:03Z","url":"https://api.github.com/repos/mapnik-org/mapnik/issues/312","id":1871871,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/941f68386168a8a6b60f2529a7830af7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/artemp","id":59056,"login":"artemp"},"html_url":"https://github.com/mapnik-org/mapnik/issues/312","labels":[{"name":"Core_Library","url":"https://api.github.com/repos/mapnik-org/mapnik/labels/Core_Library","color":"FFFFFF"}],"state":"open"},"legacy":{"number":312,"action":"opened","issue":1871871}}