Changes between Version 140 and Version 141 of Help/Styles/MapCSSImplementation


Ignore:
Timestamp:
2017-07-26T18:56:57+02:00 (8 years ago)
Author:
Klumbumbus
Comment:

unify

Legend:

Unmodified
Added
Removed
Modified
  • Help/Styles/MapCSSImplementation

    v140 v141  
    11211121 CRC32_checksum(''str'')::
    11221122  calculate the CRC32 checksum of a string (result is an integer from 0 to 2^32^-1) [''since 6908'']
    1123  is_right_hand_traffic() [''since 7193'']::
    1124   Check if there is left-hand or right-hand traffic at the current location.
    1125  number_of_tags() [''since 7237'']::
    1126   returns the number of tags for the current OSM object
    1127  print(o) [''since 7237'']::
    1128   prints a string representation of `o` to the command line (for debugging)
    1129  println(o) [''since 7237'']::
    1130   prints a string representation of `o` to the command line, followed by a new line (for debugging)
    1131  JOSM_pref(''key'', ''default'') [''since 7238, with restrictions since 3856'']::
     1123 is_right_hand_traffic()::
     1124  Check if there is left-hand or right-hand traffic at the current location. [''since 7193'']
     1125 number_of_tags()::
     1126  returns the number of tags for the current OSM object [''since 7237'']
     1127 print(o)::
     1128  prints a string representation of `o` to the command line (for debugging) [''since 7237'']
     1129 println(o)::
     1130  prints a string representation of `o` to the command line, followed by a new line (for debugging) [''since 7237'']
     1131 JOSM_pref(''key'', ''default'')::
    11321132  Get value from the JOSM advanced preferences. This way you can offer certain options to the user and make the style customizable. It works with strings, numbers, colors and boolean values. [[br]][This function exists since version 3856, but with some restrictions. `JOSM_pref` always returns a string, but in version 7237 and earlier, the automatic conversion of string to boolean and color was not working. You can use the following workarounds for boolean values and color in version 7237 and earlier: `cond(JOSM_pref("myprefkey", "true")="true", "X", "O")` and `html2color(JOSM_pref("mycolor", "#FF345611"))`. These explicit conversions should be no longer necessary in version 7238 and later. Automatic conversion to a number works in any version.]
    1133  setting() [''since 7450'']::
    1134   to use a [[Help/Styles/MapCSSImplementation#Stylesettings|style setting]]
    1135  degree_to_radians() [''since 8260'']::
    1136   returns a in degree given direction in radians
    1137  cardinal_to_radians() [''since 8260'']::
    1138   returns a cardinal direction in radians
    1139  waylength() [''since 8253'']::
    1140   returns the length of the way in metres
    1141  areasize() [''since 8253'']::
    1142   returns the area of a closed way in square meters
    1143  at(lat,lon) [''since 12514'']::
    1144   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)]`
     1133 setting()::
     1134  to use a [[Help/Styles/MapCSSImplementation#Stylesettings|style setting]] [''since 7450'']
     1135 degree_to_radians()::
     1136  returns a in degree given direction in radians [''since 8260'']
     1137 cardinal_to_radians()::
     1138  returns a cardinal direction in radians [''since 8260'']
     1139 waylength()::
     1140  returns the length of the way in metres [''since 8253'']
     1141 areasize()::
     1142  returns the area of a closed way in square meters [''since 8253'']
     1143 at(lat,lon)::
     1144  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'']
    11451145
    11461146