Changes between Version 124 and Version 125 of Help/Styles/MapCSSImplementation


Ignore:
Timestamp:
2016-11-23T16:03:53+01:00 (9 years ago)
Author:
skyper
Comment:

https plus internal links

Legend:

Unmodified
Added
Removed
Modified
  • Help/Styles/MapCSSImplementation

    v124 v125  
    351351}}}
    352352{{{#!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
    354354
    355355}}}
     
    360360                                            /* Note, that reqular expressions have to be enclosed in /.../                     */                 
    361361}}}
    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]).
     362Case-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]).
    363363{{{
    364364#!mapcss
     
    371371}}}
    372372{{{#!td align=left  valign=top   
    373 negated [http://download.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#sum Regular expression] match
     373negated [https://download.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#sum Regular expression] match
    374374
    375375}}}
     
    449449|-------------------------------------------------------------------------------
    450450{{{#!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)
     451Presence of tag by [https://download.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#sum Regular expression] match (since r6547)
    452452}}}
    453453{{{#!td align=left  valign=top   
     
    500500=== Territory selector ===
    501501
    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.
     502You 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.
    503503
    504504{{{
     
    593593
    594594=== 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.
     595See [/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.
    596596
    597597|| {{{:closed}}} || true for ways where the first node is the same as the last and for any (completely downloaded) multipolygon relation ||
     
    763763}}}
    764764
    765 The syntax closely matches the official [http://dev.w3.org/csswg/css-conditional/ css syntax]. The following conditions are supported:
     765The syntax closely matches the official [https://drafts.csswg.org/css-conditional/ css syntax]. The following conditions are supported:
    766766
    767767{{{#!th
     
    898898|| {{{dashes-background-color}}} || The color to use in between the dashes (optional) || ''Color'' ||  -  ||
    899899|| {{{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}}}  ||
    901901|| {{{linejoin}}} || Shape at the line corners || {{{round}}}, {{{miter}}}, {{{bevel}}} ||  {{{round}}}  ||
    902902|| {{{miterlimit}}}                                   || Applies for {{{linejoin: miter}}}. Sets the maximum overshoot when line segments meet at a very small angle || ''Number'' (>= 1.0) ||  10.0  ||
     
    994994
    995995'' '''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
    997997 * html style: '''{{{#RRGGBB}}}''', '''{{{#RGB}}}''', '''{{{#RRGGBBAA}}}'''
    998998 * '''{{{rgb(/*r*/, /*g*/, /*b*/)}}}''' - rgb value with arguments from 0.0 to 1.0
     
    10221022  comparison operators
    10231023 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]
    10251025 cond(b, fst, snd)::
    10261026 b ? fst : snd::
     
    12451245}}}
    12461246
    1247 The syntax closely matches the official [http://www.w3.org/TR/css3-mediaqueries/#syntax css syntax]. The following conditions are supported:
     1247The syntax closely matches the official [https://www.w3.org/TR/css3-mediaqueries/#syntax css syntax]. The following conditions are supported:
    12481248
    12491249{{{#!th