Changes between Version 145 and Version 151 of Help/Styles/MapCSSImplementation
- Timestamp:
- (multiple changes)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/Styles/MapCSSImplementation
v145 v151 110 110 meta { 111 111 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 */ 113 113 version: "1.2"; /* the version of the style */ 114 114 description: "..."; /* one or two sentences of describing the style */ 115 115 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 */ 117 117 min-josm-version: 6789; /* the minimum JOSM version where this style works */ 118 118 } … … 589 589 590 590 === 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.591 See [/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. 592 592 593 593 || {{{:closed}}} || true for ways where the first node is the same as the last and for any (completely downloaded) multipolygon relation || 594 || {{{:closed2}}} || same as above, but this one ignores if a mul ipolygon is downloaded completely (since r9099) ||594 || {{{:closed2}}} || same as above, but this one ignores if a multipolygon is downloaded completely (since r9099) || 595 595 || {{{:completely_downloaded}}} || true for a relation whose members are all downloaded (since r9099) || 596 596 || {{{:new}}} || all new objects || … … 883 883 884 884 ||= '''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'' || - || 886 886 || {{{icon-opacity}}} || Opacity of the icon image || ''Opacity'' || 1.0 || 887 887 || {{{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'' || - || … … 1147 1147 at(lat,lon):: 1148 1148 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''] 1150 1151 1151 1152 === Examples ===