Skip to content

Commit 6d49fa6

Browse files
committed
Add 'css' element to Layer (make it visible)
1 parent dc4457e commit 6d49fa6

1 file changed

Lines changed: 32 additions & 19 deletions

File tree

3.0.22/reference.json

Lines changed: 32 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -121,82 +121,95 @@
121121
}
122122
},
123123
"layer" : {
124-
"name": {
125-
"default-value": "",
126-
"type":"string",
127-
"required" : true,
128-
"default-meaning": "No layer name has been provided",
129-
"doc": "The name of a layer. Can be anything you wish and is not strictly validated, but ideally unique in the map."
130-
},
131-
"srs": {
124+
"name": {
125+
"css": "name",
126+
"default-value": "",
127+
"type":"string",
128+
"required" : true,
129+
"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."
131+
},
132+
"srs": {
133+
"css": "srs",
132134
"default-value": "",
133135
"type":"string",
134136
"default-meaning": "No srs value is provided and the value will be inherited from the Map's srs",
135137
"doc": "The spatial reference system definition for the layer, aka the projection. Can either be a proj4 literal string like '+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs' or, if the proper proj4 epsg/nad/etc identifier files are installed, a string that uses an id like: '+init=epsg:4326'."
136138
},
137-
"status": {
139+
"status": {
140+
"css": "status",
138141
"default-value": true,
139142
"type":"boolean",
140143
"default-meaning": "This layer will be marked as active and available for processing",
141144
"doc": "A property that can be set to false to disable this layer from being processed."
142145
},
143-
"minzoom": {
146+
"minzoom": {
147+
"css": "minzoom",
144148
"default-value": 0,
145149
"type":"float",
146150
"default-meaning": "The layer will be visible at the minimum possible scale",
147151
"doc": "The minimum scale denominator that this layer will be visible at. A layer's visibility is determined by whether its status is true and if the Map scale >= minzoom - 1e-6 and scale < maxzoom + 1e-6. This option has been deprecated in favor of `minimum-scale-denominator`.",
148152
"status": "deprecated"
149153
},
150-
"maxzoom": {
154+
"maxzoom": {
155+
"css": "minzoom",
151156
"default-value": "1.79769e+308",
152157
"type":"float",
153158
"default-meaning": "The layer will be visible at the maximum possible scale",
154159
"doc": "The maximum scale denominator that this layer will be visible at. The default is the numeric limit of the C++ double type, which may vary slightly by system, but is likely a massive number like 1.79769e+308 and ensures that this layer will always be visible unless the value is reduced. A layer's visibility is determined by whether its status is true and if the Map scale >= minzoom - 1e-6 and scale < maxzoom + 1e-6. This option has been deprecated in favor of `maximum-scale-denominator`.",
155160
"status": "deprecated"
156161
},
157-
"minimum-scale-denominator": {
162+
"minimum-scale-denominator": {
163+
"css": "minimum-scale-denomitator",
158164
"default-value": 0,
159165
"type":"float",
160166
"default-meaning": "The layer will be visible at the minimum possible scale denominator",
161167
"doc": "The minimum scale denominator that this layer will be visible at. A layer's visibility is determined by whether its status is true and if the Map scale denominator >= `minimum-scale-denominator` - 1e-6 and scale denominator < 'maximum-scale-denominator' + 1e-6."
162168
},
163-
"maximum-scale-denominator": {
169+
"maximum-scale-denominator": {
170+
"css": "maximum-scale-denomitator",
164171
"default-value": "1.79769e+308",
165172
"type":"float",
166173
"default-meaning": "The layer will be visible at the maximum possible scale denominator",
167174
"doc": "The maximum scale denominator that this layer will be visible at. The default is the numeric limit of the C++ double type, which may vary slightly by system, but is likely a massive number like 1.79769e+308 and ensures that this layer will always be visible unless the value is reduced. A layer's visibility is determined by whether its status is true and if the Map scale denominator >= `minimum-scale-denominator` - 1e-6 and scale denominator < `maximum-scale-denominator` + 1e-6."
168175
},
169-
"queryable": {
176+
"queryable": {
177+
"css": "queryable",
170178
"default-value": false,
171179
"type":"boolean",
172180
"default-meaning": "The layer will not be available for the direct querying of data values",
173181
"doc": "This property was added for GetFeatureInfo/WMS compatibility and is rarely used. It is off by default meaning that in a WMS context the layer will not be able to be queried unless the property is explicitly set to true."
174182
},
175-
"clear-label-cache": {
183+
"clear-label-cache": {
184+
"css": "clear-label-cache",
176185
"default-value": false,
177186
"type":"boolean",
178187
"default-meaning": "The renderer's collision detector cache (used for avoiding duplicate labels and overlapping markers) will not be cleared immediately before processing this layer",
179188
"doc": "This property, by default off, can be enabled to allow a user to clear the collision detector cache before a given layer is processed. This may be desirable to ensure that a given layers data shows up on the map even if it normally would not because of collisions with previously rendered labels or markers."
180189
},
181-
"group-by": {
190+
"group-by": {
191+
"css": "group-by",
182192
"default-value": "",
183193
"type":"string",
184194
"default-meaning": "No special layer grouping will be used during rendering",
185195
"doc": "https://github.com/mapnik/mapnik/wiki/Grouped-rendering"
186196
},
187-
"buffer-size": {
197+
"buffer-size": {
198+
"css": "buffer-size",
188199
"default-value": 0,
189200
"type":"float",
190201
"default-meaning": "No custom buffer will be used for the layer and rather the Map buffer-size will be used",
191202
"doc": "Extra tolerance around the Layer extent (in pixels) used when querying the layer data during rendering. If set this will override the Map buffer-size."
192203
},
193-
"maximum-extent": {
204+
"maximum-extent": {
205+
"css": "maximum-extent",
194206
"default-value": "none",
195207
"type":"bbox",
196208
"default-meaning": "No clipping extent will be used",
197209
"doc": "An extent to be used to limit the bounds used to query this specific layer data during rendering. Should be minx, miny, maxx, maxy in the coordinates of the Layer."
198210
},
199-
"cache-features": {
211+
"cache-features": {
212+
"css": "cache-features",
200213
"type":"boolean",
201214
"default-value": "off",
202215
"default-meaning": "Features are not cached between rendering multiple styles. The datasource is queried for each style.",

0 commit comments

Comments
 (0)