Changes between Version 63 and Version 64 of Help/Styles/MapCSSImplementation
- Timestamp:
- 2014-06-10T13:08:36+02:00 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/Styles/MapCSSImplementation
v63 v64 997 997 calculate the CRC32 checksum of a string (result is an integer from 0 to 2^32^-1) [''since 6908''] 998 998 is_right_hand_traffic() [''since 7193'']:: 999 Check if there is left-hand or right-hand traffic at the current location. Returns true, if there is right-hand traffic at the current location.999 Check if there is left-hand or right-hand traffic at the current location. 1000 1000 number_of_tags() [''since 7237'']:: 1001 1001 returns the number of tags for the current OSM object … … 1004 1004 println(o) [''since 7237'']:: 1005 1005 prints a string representation of `o` to the command line, followed by a new line (for debugging) 1006 {{{#!comment: untested 1007 JOSM_pref(''key'', ''default'') 1008 get JOSM preference 1009 JOSM_pref_color(''key'', ''default'') 1010 get color from JOSM preference 1011 }}} 1006 JOSM_pref(''key'', ''default'') [''since 7238'']:: 1007 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. 1012 1008 1013 1009