| | 1 | Display the last update time of each OSM way shown on screen. Useful for checking whether a particular mapping area has been updated recently or not. |
| | 2 | |
| | 3 | {{{ |
| | 4 | #!style type="mapcss" |
| | 5 | meta |
| | 6 | { |
| | 7 | title:"LastUpdated"; |
| | 8 | version:"1.[[revision]]_[[date]]"; |
| | 9 | description:"Display the last update time of each OSM way shown on screen. Useful for checking whether a particular mapping area has been updated recently or not."; |
| | 10 | author:"rphyrin"; |
| | 11 | watch-modified:true; |
| | 12 | } |
| | 13 | |
| | 14 | way { |
| | 15 | text: auto; |
| | 16 | text: eval(concat("20",substring(divided_by(osm_timestamp()-946692127,31556952),0,4))); |
| | 17 | text-halo-color: white; |
| | 18 | font-size:20px; |
| | 19 | text-anchor-horizontal:center; |
| | 20 | text-anchor-vertical:center; |
| | 21 | text-position:center; |
| | 22 | } |
| | 23 | }}} |