Changes between Version 65 and Version 66 of Help/Styles/MapCSSImplementation


Ignore:
Timestamp:
2014-06-22T23:00:59+02:00 (11 years ago)
Author:
bastiK
Comment:

update

Legend:

Unmodified
Added
Removed
Modified
  • Help/Styles/MapCSSImplementation

    v65 v66  
    10051005 println(o) [''since 7237'']::
    10061006  prints a string representation of `o` to the command line, followed by a new line (for debugging)
    1007  JOSM_pref(''key'', ''default'') [''since 7238'']::
    1008   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.
     1007 JOSM_pref(''key'', ''default'') [''since 7238, with restrictions since 3856'']::
     1008  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.]
    10091009
    10101010