Changes between Version 198 and Version 199 of Help/Styles/MapCSSImplementation


Ignore:
Timestamp:
2021-11-11T17:59:29+01:00 (3 years ago)
Author:
leni
Comment:

add targets for translations

Legend:

Unmodified
Added
Removed
Modified
  • Help/Styles/MapCSSImplementation

    v198 v199  
    4040
    4141
    42 == Selectors ==
     42== Selectors == #Selectors
    4343''Selectors'' denote the filter expressions of a MapCSS rule. The rule is only applied to a map object, if its selectors match with the object.
    4444
     
    565565}}}
    566566
    567 === Territory selector ===
     567=== Territory selector === #Territoryselector
    568568You can test whether an object is located inside or outside of a specific territory. JOSM has an internal database for this. The [source:/trunk/resources/data/boundaries.osm territories file] can be downloaded 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 borders 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, Canada, China, India and Australia have additional boundaries for their subdivisions. See the following examples on how to use the territory selectors. Territory selectors are less useful in mappaint styles and can be very resource heavy there. However they are much more useful for [wikitr:/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 Pseudo Classes]. See #10387 for main implementation of this feature.
    569569
     
    11871187
    11881188
    1189 == Eval expressions ==
     1189== Eval expressions ==#Evalexpressions
    11901190See [/doc/org/openstreetmap/josm/gui/mappaint/mapcss/Functions.html#method_summary Javadoc of Functions] for the up-to-date list of functions supported by JOSM's MapCSS implementation.
    11911191