Changes between Version 124 and Version 125 of Help/Styles/MapCSSImplementation
- Timestamp:
- 2016-11-23T16:03:53+01:00 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/Styles/MapCSSImplementation
v124 v125 351 351 }}} 352 352 {{{#!td align=left valign=top 353 [http://download.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#sum Regular expression] match 353 [https://download.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#sum Regular expression] match 354 354 355 355 }}} … … 360 360 /* Note, that reqular expressions have to be enclosed in /.../ */ 361 361 }}} 362 Case-insensitive matching can be enabled via the embedded flag expression `(?i)` (see [http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#CASE_INSENSITIVE Pattern.CASE_INSENSITIVE]). 362 Case-insensitive matching can be enabled via the embedded flag expression `(?i)` (see [https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#CASE_INSENSITIVE Pattern.CASE_INSENSITIVE]). 363 363 {{{ 364 364 #!mapcss … … 371 371 }}} 372 372 {{{#!td align=left valign=top 373 negated [http://download.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#sum Regular expression] match 373 negated [https://download.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#sum Regular expression] match 374 374 375 375 }}} … … 449 449 |------------------------------------------------------------------------------- 450 450 {{{#!td align=left valign=top 451 Presence of tag by [http://download.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#sum Regular expression] match (since r6547) 451 Presence of tag by [https://download.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#sum Regular expression] match (since r6547) 452 452 }}} 453 453 {{{#!td align=left valign=top … … 500 500 === Territory selector === 501 501 502 You can test whether an object is located inside or outside of a specific territory. JOSM has an internal database for this. The territories file is an osm file and can be downloaded [ https://josm.openstreetmap.de/export/HEAD/josm/trunk/data/boundaries.osm here] and opened in JOSM to investigate it [attachment:boundaries.png (screenshot preview)]. It contains borders of all countries of the world. Due to performance reasons the boaders are simplified. They can be refined for special cases on request. The territories are "tagged" with their [https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 ISO_3166-1_alpha-2 codes]. USA, Kanada and Australia have additional boundaries for their subdivisions. See the following examples on how to use the territory selectors. Territory selectors are less usefull in mappaint styles and can be very resource heavy there. However they are much more usefull for [wiki:Help/Validator/MapCSSTagChecker mapcss based validator rules]. To select territories with left-hand-traffic or right-hand-traffic, there is a simpler way, see #PseudoClasses. See #10387 for main implementation of this feature.502 You can test whether an object is located inside or outside of a specific territory. JOSM has an internal database for this. The territories file is an osm file and can be downloaded [/export/HEAD/josm/trunk/data/boundaries.osm here] and opened in JOSM to investigate it [attachment:boundaries.png (screenshot preview)]. It contains borders of all countries of the world. Due to performance reasons the boaders are simplified. They can be refined for special cases on request. The territories are "tagged" with their [https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 ISO_3166-1_alpha-2 codes]. USA, Kanada and Australia have additional boundaries for their subdivisions. See the following examples on how to use the territory selectors. Territory selectors are less usefull in mappaint styles and can be very resource heavy there. However they are much more usefull for [wiki:Help/Validator/MapCSSTagChecker mapcss based validator rules]. To select territories with left-hand-traffic or right-hand-traffic, there is a simpler way, see #PseudoClasses. See #10387 for main implementation of this feature. 503 503 504 504 {{{ … … 593 593 594 594 === Pseudo Classes === 595 See [ https://josm.openstreetmap.de/doc/org/openstreetmap/josm/gui/mappaint/mapcss/Condition.PseudoClasses.html Javadoc] for the up-to-date list of pseudo classes supported by JOSM's MapCSS implementation.595 See [/doc/org/openstreetmap/josm/gui/mappaint/mapcss/Condition.PseudoClasses.html Javadoc] for the up-to-date list of pseudo classes supported by JOSM's MapCSS implementation. 596 596 597 597 || {{{:closed}}} || true for ways where the first node is the same as the last and for any (completely downloaded) multipolygon relation || … … 763 763 }}} 764 764 765 The syntax closely matches the official [http ://dev.w3.org/csswg/css-conditional/ css syntax]. The following conditions are supported:765 The syntax closely matches the official [https://drafts.csswg.org/css-conditional/ css syntax]. The following conditions are supported: 766 766 767 767 {{{#!th … … 898 898 || {{{dashes-background-color}}} || The color to use in between the dashes (optional) || ''Color'' || - || 899 899 || {{{dashes-background-opacity}}} || Opacity value for the dashes background || ''Opacity'' || value of {{{opacity}}} || 900 || {{{linecap}}} || Shape at the end of the line (see [http://www.w3.org/TR/SVG/painting.html#StrokeLinecapProperty here]) || {{{none}}}, {{{round}}}, {{{square}}} || {{{none}}} || 900 || {{{linecap}}} || Shape at the end of the line (see [https://www.w3.org/TR/SVG/painting.html#StrokeLinecapProperty here]) || {{{none}}}, {{{round}}}, {{{square}}} || {{{none}}} || 901 901 || {{{linejoin}}} || Shape at the line corners || {{{round}}}, {{{miter}}}, {{{bevel}}} || {{{round}}} || 902 902 || {{{miterlimit}}} || Applies for {{{linejoin: miter}}}. Sets the maximum overshoot when line segments meet at a very small angle || ''Number'' (>= 1.0) || 10.0 || … … 994 994 995 995 '' '''Color''' '' 996 * named color as found in [http://www.w3.org/TR/css3-color/#svg-color this] list 996 * named color as found in [https://www.w3.org/TR/css3-color/#svg-color this] list 997 997 * html style: '''{{{#RRGGBB}}}''', '''{{{#RGB}}}''', '''{{{#RRGGBBAA}}}''' 998 998 * '''{{{rgb(/*r*/, /*g*/, /*b*/)}}}''' - rgb value with arguments from 0.0 to 1.0 … … 1022 1022 comparison operators 1023 1023 asin, atan, atan2, ceil, cos, cosh, exp, floor, log, max, min, random, round, signum, sin, sinh, sqrt, tan, tanh:: 1024 the usual meaning, [http://download.oracle.com/javase/7/docs/api/java/lang/Math.html details] 1024 the usual meaning, [https://download.oracle.com/javase/7/docs/api/java/lang/Math.html details] 1025 1025 cond(b, fst, snd):: 1026 1026 b ? fst : snd:: … … 1245 1245 }}} 1246 1246 1247 The syntax closely matches the official [http://www.w3.org/TR/css3-mediaqueries/#syntax css syntax]. The following conditions are supported: 1247 The syntax closely matches the official [https://www.w3.org/TR/css3-mediaqueries/#syntax css syntax]. The following conditions are supported: 1248 1248 1249 1249 {{{#!th
