Changes between Version 145 and Version 150 of Help/Styles/MapCSSImplementation


Ignore:
Timestamp:
(multiple changes)
Author:
(multiple changes)
Comment:
(multiple changes)

Legend:

Unmodified
Added
Removed
Modified
  • Help/Styles/MapCSSImplementation

    v145 v150  
    110110meta {
    111111    title: "Parking lanes";   /* title shown in the menu */
    112     icon: "images/logo.png"; /* small icon shown in the menu next to the title */
     112    icon: "logo_16x16x8.png"; /* small icon shown in the menu next to the title */
    113113    version: "1.2";           /* the version of the style */
    114114    description: "...";       /* one or two sentences of describing the style */
    115115    author: "...";            /* the author(s) of the style */
    116     link: "http://...";       /* URL to the web page of the style */
     116    link: "https://...";      /* URL to the web page of the style */
    117117    min-josm-version: 6789;   /* the minimum JOSM version where this style works */
    118118}
     
    589589
    590590=== Pseudo Classes ===
    591 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.
     591See [/doc/org/openstreetmap/josm/gui/mappaint/mapcss/ConditionFactory.PseudoClasses.html Javadoc] for the up-to-date list of pseudo classes supported by JOSM's MapCSS implementation.
    592592
    593593|| {{{:closed}}} || true for ways where the first node is the same as the last and for any (completely downloaded) multipolygon relation ||
     
    883883
    884884||=  '''Key''' =||= '''Description''' =||= '''Value Format''' =||= '''Default Value''' =||
    885 || {{{icon-image}}} || The icon at node position || ''Image'' ||  -  ||
     885|| {{{icon-image}}} || The icon at node position. See also [wiki:Help/Styles/Images Images]. || ''Image'' ||  -  ||
    886886|| {{{icon-opacity}}} || Opacity of the icon image || ''Opacity'' ||  1.0  ||
    887887|| {{{icon-width}}} || Width of the icon. If only one of the properties {{{icon-width}}} and {{{icon-height}}} is given, the image will be scaled proportionally. The icon will keep the original size, if neither {{{icon-width}}} nor {{{icon-height}}} is set. || ''Number'' ||  -  ||
     
    11471147 at(lat,lon)::
    11481148  returns true if the object centroid lies at given ''lat''/''lon'' coordinates, e.g. to check for nodes at "null island" `node[at(0.0,0.0)]` [''since 12514'']
    1149 
     1149 is_similar(''str1'', ''str2'')::
     1150  returns true if the two strings are similar, but not identical, i.e., have a Levenshtein distance of 1 or 2. Example: {{{way[highway][name][is_similar(tag(name), "Main Street")]}}} checks for streets with a possible typo in the name (e.g. Main Streeg). [''since 14371'']
    11501151
    11511152=== Examples ===