[[TranslatedPages]] = MapWithAI = Consente l'utilizzo dei dati MapWithAI in JOSM. == Caratteristiche == #Features * Located in **[wikitr:/Help/Action/Download Download Data]**: Download arbitrary data (non-cropped at this time) with the `Download from MapWithAI API` checkbox -- ''note that you cannot download multiple MapWithAI layers'' * Located in **[wikitr:/Help/Menu/Data data menu]**: * **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). {{{#!comment * **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. }}} * **MapWithAI: Add selected data**: Add the selected data from the MapWithAI data layer to a OSM Data Layer * **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). * [#RemoteControl Remote Control] + [#UploadHooks Upload Hooks] * Map paint style: * Automatically added by the plugin * Can be automatically toggled on/off with the `MapWithAI` layer (this requires the `MapWithAI` plugin) * Can show `new`, `modified`, or `pre-existing` MapWithAI data (depends upon the `source` tag). * Live counter of objects added with `MapWithAI` * Preferences * Set MapWithAI url(s) * Choose whether or not MapWithAI automatically switches layers * Choose how many features you want to add per action * 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) * Change tags ''([wikitr:/Help/ExpertMode expert mode] only)'' that you want to be replaced. For example, `highway=residential` can become `disused:highway=road`. ''This replacement only occurs during download.'' {{{#!comment Access MapWithAI/RapiId data for arbitrary regions in [wikitr:/Help/Action/Download Download Data] with the new ''with the `Download from MapWithAI API'' tab. To download for the current working area simply use ''MapWithAI: Download data'' in the [wikitr:/Help/Menu/Data Data menu]. Add selected objects from the MapWithAI layer to the OSM data layer with ''MapWithAI: Add selected data' in the Data menu. Can automatically activate the OSM data layer after adding. Can select unlimited number of objects. * [#Remotecontrol Remote Control] * [/Styles/MapWithAI PaintStyle] * added by the plugin * Can show `new`, `modified`, or `pre-existing` MapWithAI data (depends upon the `source` tag). * Live counter of objects added with `MapWithAI` * Choose how many features you want to add per action * Choose whether or not to merge buildings with address nodes (note: ) * Change tags ''([wikitr:/Help/ExpertMode expert mode] only)'' that you want to be replaced. For example, `highway=residential` can become `disused:highway=road`. }}} == Installazione === Mandatory 1. see [wikitr:/Help/Preferences/Plugins Preferences > Plugins] for details. === Paintstyle (Plugin should automatically add and enable it) 1. Start JOSM. 1. Open JOSM Preferences. 1. Go to [wikitr:/Help/Preferences/MapPaintPreference Map Paint Styles] 1. Add `MapWithAI` from the `Available style` list. 1. Press OK. == Basic Usage ==#BasicUsage 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. 1. Prepare the area of interest as usual by downloading OSM data and choosing a background imagery. 1. Download data from MapWithAI by going to the `Data` -> `MapWithAI: Download Data`. The default keyboard shortcut is **`Ctrl+R`** (`Cmd+R` on Mac). \\ [[Image(GetData.png, alt=Download Data, center, 80%, link=)]]\\ \\ This simply uses the OSM data boundaries for the MapWithAI download too.\\ If several data layers are loaded, a dialog will ask from which layer the data boundaries should give the target for the MapWithAI download. \\ MapWithAI holds all of its data in one single layer. {{{#!comment This is dependent upon configured URLs (defaults to MapWithAI). }}} 3. Switch to the `MapWithAI` layer if it is not already activated. 3. Select objects to add to the topmost OSM data layer. 3. Add the selected objects by going to `Data` -> `MapWithAI: Add selected data` (default keyboard shortcut is **`Shift+A`**). [[Image(SaveData.png, alt=Add selected data, center, 80%, link=)]] == Advanced Usage == 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). === Preferenze === ||= Preferenze =||= Spiegazione =||= Modalità Esperti =|| || API URLs || URLs per il servizio MapWithAI (se vuoto, ripristina i valori predefiniti dopo il riavvio di JOSM) || no || || Cambia automaticamente i livelli || Quando si aggiungono dati cambia automaticamente livello (predefinito `si`) || no || || Massimo numero di caratteristiche (aggiunta) || Il numero massimo di oggetti che possono essere selezionati nel layer MapWithAI (predefinito `5`) || no || || Unisci nodi degli indirizzi e gli edifici || Unisce gli edifici aggiunti dal livello MapWithAI con il singolo nodo di indirizzo interno all'edificio esistente sul livello di OSM (predefinito `si`) || no || || Etichette sostitutive || Tabella delle chiavi da sostituire (il valore predefinito è vuoto) || yes || The table of replacement tags has `Key` and `Value` columns in the format of `key=TAG=VALUE` and `value=TAG=VALUE`, for example: [[Image(TagReplacement.png, alt=Add Tag, center, 80%,link=)]] Note that you can remove a tag by using `TAG=VALUE` for the original (`key` in the table) and `TAG=` for the replacement (`value` in the table). MapWithAI has an own tab in the Plugins register in the JOSM Preferences dialog. [[Image(MapWithAIPreferencePanel.png, alt=MapWithAI Preferences, center, 80%)]] === Controllo remoto === #RemoteControl Se JOSM è in esecuzione con il controllo remoto abilitato e il plugin MapWithAI è installato, puoi andare su http://localhost:8111/features?q=mapwithai . Il controllo remoto influisce ''soltanto'' sul layer MapWithAI corrente. * Scaricare dati per i livelli correnti http://localhost:8111/mapwithai * Impostare una bbox per scaricare i dati http://localhost:8111/mapwithai?bbox=longitude1,latitude1,longitude2,latitude2 * Impostare un URL arbitrario http://localhost:8111/mapwithai?url=STRING * Impostare numero massimo di oggetti da aggiungere in ogni azione http://localhost:8111/mapwithai?max_obj=INT * Impostare il cambio livello automatico http://localhost:8111/mapwithai?switch_layer=BOOLEAN * Impostare un ritaglio di una bbox http://localhost:8111/mapwithai?crop_bbox=longitude1,latitude1,longitude2,latitude2 === Etichette dei Changeset === #ChangesetTags * `mapwithai`: Conteggio degli oggetti OSM aggiunti e ancora presenti nel layer MapWithAI (divisioni ed eliminazioni potrebbero rendere questo dato impreciso). * `mapwithai:options`: Un elenco di opzioni non predefinite separate da punto e virgola (`;`): * `versione`: La versione del plugin MapWithAI. Aggiunto nel caso ci sia un bug grave in modo che possa essere inserito nella blacklist. * `task`: Il riquadro di delimitazione di un'attività, se ne viene rilevato uno. * `maxadd`: Numero massimo di oggetti MapWithAI che potevano essere aggiunti per operazione. `<1` indica che l'utente è stato in grado di aggiungere un numero qualsiasi di oggetti (potrebbe indicare un'importazione non documentata). * `url`: Mostra gli URL non predefiniti. Sempre l'ultimo `mapwithai:option`. === Impostazioni Avanzate === #AdvancedSettings * `mapwithai.conflation.simplifyway` -- soglia in base alla quale determinare se una way potrebbe dover essere semplificata. Per impostazione predefinita è `0.5`. * `mapwithai.conflation.simplifywaynodepercentagerequired` -- La percentuale di nodi arrivati alla quale all'utente viene chiesto se il percorso debba essere semplificato. Il valore predefinito è `20` (percento). === Compilazione === [https://gitlab.com/gokaart/JOSM_MapWithAI/wikis/Building-and-Testing Building and Testing] ---- Torna a [wikitr:/Plugins#JOSMdocu Plugin Help] \\ Torna a [wikitr:/Help Main Help]