Changes between Version 32 and Version 33 of Help/Styles/MapCSSImplementation
- Timestamp:
- 2013-12-29T14:49:41+01:00 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/Styles/MapCSSImplementation
v32 v33 221 221 |------------------------------------------------------------------------------- 222 222 {{{#!td align=left valign=top 223 = 223 `=` 224 224 }}} 225 225 {{{#!td align=left valign=top … … 238 238 |------------------------------------------------------------------------------- 239 239 {{{#!td align=left valign=top 240 != 240 `!=` 241 241 }}} 242 242 {{{#!td align=left valign=top … … 254 254 |------------------------------------------------------------------------------- 255 255 {{{#!td align=left valign=top 256 <,>, <=, >= 256 `<`, `>`, `<=`, `>=` 257 257 }}} 258 258 {{{#!td align=left valign=top … … 282 282 |------------------------------------------------------------------------------- 283 283 {{{#!td align=left valign=top 284 $= 284 `$=` 285 285 }}} 286 286 {{{#!td align=left valign=top … … 295 295 |----------------------------------------------- 296 296 {{{#!td align=left valign=top 297 *= 297 `*=` 298 298 }}} 299 299 {{{#!td align=left valign=top … … 308 308 |------------------------------------------------------------------------------- 309 309 {{{#!td align=left valign=top 310 ~= 310 `~=` 311 311 }}} 312 312 {{{#!td align=left valign=top … … 322 322 |------------------------------------------------------------------------------- 323 323 {{{#!td align=left valign=top 324 =~ 324 `=~` 325 325 }}} 326 326 {{{#!td align=left valign=top … … 337 337 |------------------------------------------------------------------------------- 338 338 {{{#!td align=left valign=top 339 !~(since r6455)339 `!~` (since r6455) 340 340 }}} 341 341 {{{#!td align=left valign=top … … 349 349 }}} 350 350 }}} 351 352 Since r6554, it is possible to prefix the "value" (i.e., expression after the operator) with a `*` in order to "de-reference" it (i.e., obtain consider it as another key and obtain its value). Thus, `[key1 = *key2]` compares the value of `key1` with the value of `key2`, and `[key =~ */pattern/]` considers the value of the key `pattern` as a regular expression and matches it against the value of `key`. 351 353 352 354 In addition, you can test whether a tag is present or not: … … 387 389 }}} 388 390 {{{#!td align=left valign=top 389 * `way[/^addr:/]` (matches any `addr:*` key) 391 {{{ 392 #!mapcss 393 way[/^addr:/] /* matches any `addr:*` key */ 394 }}} 390 395 }}} 391 396 … … 442 447 |------------------------------------------------------------------------------- 443 448 {{{#!td align=left valign=top 444 = 449 `=` 445 450 }}} 446 451 {{{#!td align=left valign=top … … 479 484 }}} 480 485 |------------------------------------------------------------------------------- 481 || {{{way|z12 {...}}}} || At zoom level 12 || 482 || {{{way|z13-15 {...}}}} || From 13 to 15 || 483 || {{{way|z16- {...}}}} || 16 and above || 484 || {{{way|z-12 {...}}}} || 12 and below || 485 || {{{way {...}}}} || any zoom level || 486 || {{{way|z12 {...} }}} || At zoom level 12 || 487 || {{{way|z13-15 {...} }}} || From 13 to 15 || 488 || {{{way|z16- {...} }}} || 16 and above || 489 || {{{way|z-12 {...} }}} || 12 and below || 490 || {{{way {...} }}} || any zoom level || 486 491 487 492 The precise definition of scale ranges for each zoom level may change in the future. By rule of thumb you can expect to be approximately at zoom level ''n'' when imagery displays slippymap tiles of level ''n''.