Skip to content

Commit f2bae96

Browse files
committed
Layer-based compositing (PR #3474)
Query: does opacity allow expression?
1 parent 0e6525f commit f2bae96

1 file changed

Lines changed: 53 additions & 1 deletion

File tree

4.2.0/reference.json

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
"type":"string",
128128
"required" : true,
129129
"default-meaning": "No layer name has been provided",
130-
"doc": "The name of a layer. Can be anything you wish and is not strictly validated, but ideally unique in the map."
130+
"doc": "The name of a layer. Can be anything you wish and is not strictly validated, but ideally unique in the map."
131131
},
132132
"srs": {
133133
"css": "srs",
@@ -215,6 +215,58 @@
215215
"default-meaning": "Features are not cached between rendering multiple styles. The datasource is queried for each style.",
216216
"doc": "Setting this to `on` triggers Mapnik to attempt to cache features in memory for rendering when (and only when) a layer has multiple styles attached to it."
217217
}
218+
"comp-op": {
219+
"css": "comp-op",
220+
"default-value": "src-over",
221+
"default-meaning": "add the current layer on top of other layers",
222+
"doc": "Composite operation. This defines how this layer should behave relative to layers atop or below it. See https://github.com/mapnik/mapnik/pull/3474.",
223+
"type": [
224+
"clear",
225+
"src",
226+
"dst",
227+
"src-over",
228+
"dst-over",
229+
"src-in",
230+
"dst-in",
231+
"src-out",
232+
"dst-out",
233+
"src-atop",
234+
"dst-atop",
235+
"xor",
236+
"plus",
237+
"minus",
238+
"multiply",
239+
"divide",
240+
"screen",
241+
"overlay",
242+
"darken",
243+
"lighten",
244+
"color-dodge",
245+
"color-burn",
246+
"linear-dodge",
247+
"linear-burn",
248+
"hard-light",
249+
"soft-light",
250+
"difference",
251+
"exclusion",
252+
"contrast",
253+
"invert",
254+
"invert-rgb",
255+
"grain-merge",
256+
"grain-extract",
257+
"hue",
258+
"saturation",
259+
"color",
260+
"value"
261+
]
262+
},
263+
"opacity": {
264+
"css": "opacity",
265+
"type": "float",
266+
"doc": "An alpha value for the layer, which means an alpha applied to all features in separate buffer and then composited back to the overall buffer for the current layer or nested set of layers.",
267+
"default-value": 1.0,
268+
"default-meaning": "No separate buffer will be used and no alpha will be applied to the layer after rendering."
269+
}
218270
},
219271
"symbolizers" : {
220272
"map": {

0 commit comments

Comments
 (0)