| 102 | | == Adding presets for objects and mark them with source=yahoo_wms == |
| 103 | | |
| 104 | | It can be useful to let other users know what your data is based on by adding {{tag|source||yahoo_wms}}. This can be quickly done by creating a JOSM [wiki:TaggingPresets tagging preset] for roads, woodland, etc and source=yahoo_wms. |
| 105 | | |
| 106 | | Once this is setup, it is simple to apply custom combinations of tags to an node, way or area in JOSM: |
| 107 | | |
| 108 | | * Download the [[Image:Yahoo-road.png]] Yahoo road icon. |
| 109 | | * Open your favourite text editor and insert the following: |
| 110 | | <annotations> |
| 111 | | <item name="road-source" icon="[PATH TO ICON]\Yahoo-road.png"> |
| 112 | | <key key="source" value="yahoo_wms" /> |
| 113 | | <key key="highway" value="road" /> |
| 114 | | </item> |
| 115 | | </annotations> |
| 116 | | |
| 117 | | * Save it as yahoo-presets.xml |
| 118 | | * Open JOSM |
| 119 | | * Open the Preferences, go to the Map Settings (3rd tab) |
| 120 | | * Add your file at the "Tagging Preset Sources" |
| 121 | | * Restart JOSM |
| 122 | | * If you want, you can put the preset in your toolbar for quick access (Preferences, Toolbar customization) |
| 123 | | * You might also want presets for things like [[Image:Yahoo-farm.png]] {{tag|landuse||farm}} and/or [[Image:Yahoo-stream.png]] {{tag|waterway||stream}} |
| 124 | | * Download the above icons and add new <item> entries to your yahoo-presets.xml file |
| 125 | | |
| 136 | | {|{{Prettytable}} |
| 137 | | !parameter |
| 138 | | !required/ |
| 139 | | optional |
| 140 | | !meaning |
| 141 | | |- |
| 142 | | |url |
| 143 | | |R |
| 144 | | |WMS URL in the usual format. This must be the last parameter. |
| 145 | | |- |
| 146 | | |title |
| 147 | | |O |
| 148 | | |Title (name) of WMS layer. If not specified the title will be "remote WMS". |
| 149 | | |- |
| 150 | | |urldecode |
| 151 | | |O |
| 152 | | |Disable URL-decoding of URL value if true. All other values will be URL-decoded anyway. |
| 153 | | |- |
| 154 | | |cookies |
| 155 | | |O |
| 156 | | |Can be used to specify cookies for the WMS request. |
| 157 | | |} |
| | 110 | ||=parameter=||=required/optional=||=meaning=|| |
| | 111 | ||url||R||WMS URL in the usual format. This must be the last parameter.|| |
| | 112 | ||title||O||Title (name) of WMS layer. If not specified the title will be "remote WMS".|| |
| | 113 | ||urldecode||O||Disable URL-decoding of URL value if true. All other values will be URL-decoded anyway.|| |
| | 114 | ||cookies||O||Can be used to specify cookies for the WMS request.|| |