Changes between Version 72 and Version 73 of Help/Styles/MapCSSImplementation


Ignore:
Timestamp:
2014-09-30T19:23:32+02:00 (11 years ago)
Author:
Klumbumbus
Comment:

+Style settings in eval list

Legend:

Unmodified
Added
Removed
Modified
  • Help/Styles/MapCSSImplementation

    v72 v73  
    10321032 JOSM_pref(''key'', ''default'') [''since 7238, with restrictions since 3856'']::
    10331033  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.]
    1034 
     1034 setting() [''since 7450'']::
     1035  to use a [[Help/Styles/MapCSSImplementation#Stylesettings|style setting]]
    10351036
    10361037