Changes between Version 7 and Version 8 of Help/Plugin/MapWithAI
- Timestamp:
- 2020-03-10T00:17:54+01:00 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/Plugin/MapWithAI
v7 v8 1 = Features 1 = MapWithAI = 2 Allows the use of MapWithAI data in JOSM. 3 == Features == #Features 2 4 * Located in **[[Action/Download|Download Data]]**: Download arbitrary data (non-cropped at this time) in the `Download from MapWithAI API` tab -- ''note that you cannot download multiple MapWithAI layers'' 3 5 * Located in **[[Menu/Data|data menu]]** 4 6 * **MapWithAI: Download data**: Download MapWithAI data from the current download area (if more than one layer, a dialog will ask for a layer to be selected). This is dependent upon configured URLs (defaults to MapWithAI). 7 {{{#!comment 5 8 * **MapWithAI: Download arbitrary data** ''([wikitr:/Help/ExpertMode expert mode] only)'': Download MapWithAI data inside an arbitrary bounding box, optionally cropping to the bounding box. The bounding box defaults to the current map view. This is also dependent upon configured URLs. 9 }}} 6 10 * **MapWithAI: Add selected data**: Add the selected data from the MapWithAI data layer to a OSM Data Layer 7 11 * **MapWithAI: Attempt to merge potentially duplicate ways** ''([wikitr:/Help/ExpertMode expert mode] only)'': Attempt to merge potentially duplicate ways. Done automatically for MapWithAI data, but is available for other uses (may or may not work as expected). 8 * [#Remotecontrol Remote Control] 9 * Upload Hooks 10 * `mapwithai`: The count of OSM objects added and still present from the MapWithAI layer (splits and deletions may cause this to be inaccurate) 11 * `mapwithai:options`: A semi-colon (`;`) separated list of non-default options 12 * `version`: The version of the MapWithAI plugin. Added in case there is a severe bug so it can be blacklisted. 13 * `task`: The bounding box for a task, if one is detected 14 * `maxadd`: The maximum number of MapWithAI objects that are permitted to be added per operation. `<1` allows any number of objects to be added. 15 * `url`: Shows non-default urls. Always the last `mapwithai:option`. 16 * [/Styles/MapWithAI PaintStyle] 12 * [#RemoteControl Remote Control] + [#UploadHooks Upload Hooks] 13 * Map paint style 17 14 * Automatically added by the plugin 18 15 * Can be automatically toggled on/off with the `MapWithAI` layer (this requires the `MapWithAI` plugin) 19 16 * Can show `new`, `modified`, or `pre-existing` MapWithAI data (depends upon the `source` tag). 20 17 * Live counter of objects added with `MapWithAI` 21 * [/wiki/Help/Preferences/Plugins Preferences]18 * Preferences 22 19 * Set MapWithAI url(s) 23 20 * Choose whether or not MapWithAI automatically switches layers … … 25 22 * Choose whether or not to merge buildings with address nodes (note: this only applies to buildings that will have one ''and only one'' address inside it) 26 23 * Change tags ''([wikitr:/Help/ExpertMode expert mode] only)'' that you want to be replaced. For example, `highway=residential` can become `disused:highway=road`. 27 = Installation 28 == Mandatory 24 {{{#!comment 25 Access MapWithAI/RapiId data for arbitrary regions in [wikitr:/Help/Action/Download Download Data] with the new ''with the `Download from MapWithAI API'' tab. 26 To download for the current working area simply use ''MapWithAI: Download data'' in the [wikitr:/Help/Menu/Data Data menu]. 27 28 Add selected objects from the MapWithAI layer to the OSM data layer with ''MapWithAI: Add selected data' in the Data menu. 29 Can automatically activate the OSM data layer after adding. 30 Can select unlimited number of objects. 31 32 * [#Remotecontrol Remote Control] 33 * [/Styles/MapWithAI PaintStyle] 34 * added by the plugin 35 36 * Can show `new`, `modified`, or `pre-existing` MapWithAI data (depends upon the `source` tag). 37 * Live counter of objects added with `MapWithAI` 38 * Choose how many features you want to add per action 39 * Choose whether or not to merge buildings with address nodes (note: ) 40 * Change tags ''([wikitr:/Help/ExpertMode expert mode] only)'' that you want to be replaced. For example, `highway=residential` can become `disused:highway=road`. 41 }}} 42 43 == Installation 44 === Mandatory 29 45 1. see [[Help/Preferences/Plugins]] for details) 30 == Paintstyle (Plugin should automatically add and enable it) 46 === Paintstyle (Plugin should automatically add and enable it) 31 47 1. Start JOSM 32 48 2. Open JOSM Preferences … … 35 51 5. Add `MapWithAI` from the `Available style` list 36 52 6. Press OK 37 = Usage38 53 == Basic Usage ==#BasicUsage 39 54 Please note that the screen shots were taken with `Expert Mode` checked in JOSM preferences. You may not see all the actions available without that check, the missing actions may be buggy or for a niche audience. 40 1. Download an area of interest (either through a tasking manager or through the standard download window) 41 2. Download data from MapWithAI by going to `Data` -> `MapWithAI: Download Data` (default keyboard shortcut is `ctrl` + `r` / `cmd` + `r`, will conflict with a `LiveGPSPlugin` shortcut). 55 1. Prepare the area of interest as usual by downloading OSM data and choosing a background imagery. 56 2. Download data from MapWithAI by going to the `Data` -> `MapWithAI: Download Data`. The default keyboard shortcut is **`Ctrl+R`** (`Cmd+R` on Mac). 57 \\ 58 [[Image(GetData476.png, alt=Download Data, center, 80%, link=)]]\\ 59 \\ 60 This simply uses the OSM data boundaries for the MapWithAI download too. 61 If several data layers are loaded, a dialog will ask from which layer the data boundaries should give the target for the MapWithAI download. 62 MapWithAI holds all of its data in one single layer. 63 {{{#!comment 64 This is dependent upon configured URLs (defaults to MapWithAI). 65 }}} 42 66 43 [[Image(GetData.png, alt=Download Data, center, 80%)]] 67 3. Switch to the `MapWithAI` layer if it is not already activated. 68 4. Select objects to add to the topmost OSM data layer. 69 5. Add the selected objects by going to `Data` -> `MapWithAI: Add selected data` (default keyboard shortcut is **`Shift+A`**) 44 70 45 3. Switch to the `MapWithAI` layer if it is not already selected 46 4. Select an object or objects to add 47 5. Add the object by going to `Data` -> `MapWithAI: Add selected data` (default keyboard shortcut is `shift` + `a`) 71 [[Image(SaveData476.png, alt=Add selected data, center, 80%, link=)]] 72 == Advanced Usage == 48 73 49 [[Image(SaveData.png, alt=Add selected data, center, 80%)]] 50 == Advanced Usage 51 === Preferences 52 MapWithAI Preferences are currently under JOSM Preferences -> `Plugins` -> `MapWithAI`. 74 The ''MapWithAI: Attempt to merge potential duplicate ways'' is available in [wikitr:/Help/ExpertMode expert mode] only. It attempts to merge potentially duplicate ways. Done automatically for MapWithAI data, but is available for other uses (may or may not work as expected). 75 76 === Preferences === 53 77 54 78 ||= Preference =||= Explanation =||= Expert Mode =|| 55 79 || API URLs || URLs for MapWithAI service (if blank, resets to default after JOSM restart) || no || 56 || Automatically switch layers || if checked, when adding data switch layers automatically (default `yes`) || no ||57 || Maximum features (add) || The maximum number of features that can beadded fromthe MapWithAI Layerin one action(default `5`) || no ||58 || Merge address nodes and buildings || Merge sbuildings added from the MapWithAI layer with buildingnodes(default `yes`) || no ||59 || Table of replacement tags || Table of keys to replace (default is empty) || yes ||80 || Automatically switch layers || When adding data switch layers automatically (default `yes`) || no || 81 || Maximum features (add) || The maximum number of objects that can be selected in the MapWithAI Layer (default `5`) || no || 82 || Merge address nodes and buildings || Merge buildings added from the MapWithAI layer with one single existing address node inside the building on the OSM layer (default `yes`) || no || 83 || Replacement tags || Table of keys to replace (default is empty) || yes || 60 84 61 The table of replacement tags tags `key` and `value` entries in the format of `key=TAG=VALUE` and `value=TAG=VALUE`, for example:85 The table of replacement tags has `Key` and `Value` columns in the format of `key=TAG=VALUE` and `value=TAG=VALUE`, for example: 62 86 63 [[Image(TagReplacement.png, alt=Add Tag, center, 80%)]] 87 [[Image(TagReplacement476.png, alt=Add Tag, center, 80%,link=)]] 88 89 MapWithAI has an own tab in the Plugins register in the JOSM Preferences dialog. 64 90 65 91 [[Image(MapWithAIPreferencePanel.png, alt=MapWithAI Preferences, center, 80%)]] 66 92 67 === Remote control 68 For current features, if JOSM is running with remote control enabled and the MapWithAI plugin is installed, you can go to http://localhost:8111/features?q=mapwithai .93 === Remote control === #RemoteControl 94 If JOSM is running with remote control enabled and the MapWithAI plugin is installed, you can go to http://localhost:8111/features?q=mapwithai . 69 95 70 96 Remote control ''only'' affects the current MapWithAI layer. … … 77 103 * Setting a crop bbox http://localhost:8111/mapwithai?crop_bbox=longitude1,latitude1,longitude2,latitude2 78 104 79 = Building 105 === Upload Hooks === #UploadHooks 106 * `mapwithai`: The count of OSM objects added and still present from the MapWithAI layer (splits and deletions may cause this to be inaccurate) 107 * `mapwithai:options`: A semi-colon (`;`) separated list of non-default options 108 * `version`: The version of the MapWithAI plugin. Added in case there is a severe bug so it can be blacklisted. 109 * `task`: The bounding box for a task, if one is detected 110 * `maxadd`: The maximum number of MapWithAI objects that are permitted to be added per operation. `<1` allows any number of objects to be added. 111 * `url`: Shows non-default urls. Always the last `mapwithai:option`. 112 113 114 === Building === 80 115 [https://gitlab.com/gokaart/JOSM_MapWithAI/wikis/Building-and-Testing Building and Testing]