Changes between Version 4 and Version 5 of Ru:Help/RemoteControlCommands
- Timestamp:
- 2017-11-21T08:24:59+01:00 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ru:Help/RemoteControlCommands
v4 v5 111 111 }}} 112 112 где 113 ||= **Параметр** =||= **Обязательны е/необязательный** =||= **Значение** =||113 ||= **Параметр** =||= **Обязательный/необязательный** =||= **Значение** =|| 114 114 || `objects` || О || Разделённый запятыми список ID объектов, например, "{{{n1234,n1235,w84,r958493}}}" || 115 115 || `new_layer` || Н || Если '''true''', скачивает в новый слой || … … 142 142 === {{{add_way}}} === 143 143 144 Instructs JOSM to create a new way with new way nodes at given coordinates.145 146 ** Note**: This action requires the permission ''Create new objects'' which is disabled by default.144 Указывает JOSM создать новую линию с точками, создаваемыми в заданных координатах. 145 146 **Примечание**: это действие требует права ''Создать новые объекты'', которое не включено в настройках по умолчанию. 147 147 148 148 {{{ … … 150 150 }}} 151 151 where 152 ||= ** Parameter** =||= **Required/Optional** =||= **Meaning** =||153 || `way` || R || Pairs of latitude, longitude coordinates separated by semicolon. ||154 || `addtags` since v1.5|| O || Optional parameter to add tags. The key and value is separated by "=" and multiple tags can be separated by a Pipe "|". See [#addtags details]. ||155 156 ==== Example====152 ||= **Параметр** =||= **Обязательный/необязательный** =||= **Значение** =|| 153 || `way` || О || Пары координат (широта, долгота), разделённые точками с запятой. || 154 || `addtags` с v1.5|| Н || Необязательный параметр для добавления тегов. Ключ и значение разделяются "=", а несколько тегов могут быть разделены вертикальной линией "|". См. [#addtags подробнее]. || 155 156 ==== Пример ==== 157 157 158 158 http://localhost:8111/add_way?way=53.2,13.3;53.3,13.3;53.3,13.2 … … 160 160 161 161 === {{{version}}} === 162 This command returns the current protocol version of the installed !RemoteControl interface. Developers can use it to query for a running instance of JOSM and also determine whether the requested functionality is available in the client. 162 Эта команда возвращает текущую версию протокола интерфейса удалённого управления. Разработчики могут использовать её для запроса, запущен ли экземпляр JOSM, а также для определения, доступна ли требуемая функциональность на клиенте. 163 163 164 {{{ 164 165 GET /version[?jsonp=callback] 165 166 }}} 166 where 167 ||= ** Parameter** =||= **Required/Optional** =||= **Meaning** =||168 || `jsonp` || O|| Jsonp callback for older browsers not implementingCross-Origin Resource Sharing (CORS) ||167 где 168 ||= **Параметр** =||= **Обязательный/необязательный** =||= **Значение** =|| 169 || `jsonp` || Н|| обратный вызов Jsonp для старых браузеров, не поддерживающих Cross-Origin Resource Sharing (CORS) || 169 170 170 171 The command returns a json object containing an application identifier that is always "JOSM !RemoteControl", a major number and a minor number. Compatible protocol changes result in an increase of the minor number. Incompatible changes increase the major number. So a client application knowing of protocol version 1.0 can still talk to JOSM having 1.1. But it's not guaranteed to be working with 2.0. So the client should verify the major number. 171 172 172 A typical output looks like this:173 Типичный вывод выглядит так: 173 174 {{{ 174 175 #!js … … 241 242 242 243 243 === Adding, changing or deleting tags=== #addtags244 Try this example:244 === Добавление, изменение и удаление тегов === #addtags 245 Попробуйте этот пример: 245 246 [http://localhost:8111/load_and_zoom?addtags=wikipedia%3Ade=Weiße_Gasse%7Cmaxspeed=5&select=way23071688,way23076176,way23076177,&left=13.739727546842&right=13.740890970188&top=51.049987191025&bottom=51.048466954325]. 246 247 (Works also with the zoom-command) 247 248 248 The user must review the tags and the selection before the tags are applied to the selected objects.249 If the tag exists on some objects, it will be can be replaced.250 251 Since protocol version1.5252 - `add_node` and `add_way` commands support `addtags` parameter253 - It is possible to use `=` character in value and all leading/trailing spaces are trimmed.254 [http://localhost:8111/add_node?lon=13.3&lat=53.2&addtags=natural=tree%7Cname=%20%20%20==Great%20Oak==] ( creates node with natural=tree anname="==Great Oak==")255 - If empty value is found, tag is to be deleted from objects(checkbox-confirmation is needed)249 Пользователь должен проверить теги и выделение перед применением тегов к выделенным объектам. 250 Если у каких-нибудь объектов уже есть тег, он может быть заменён. 251 252 С версии протокола 1.5 253 - команды `add_node` и `add_way` поддерживают параметр `addtags` 254 - можно использовать символ `=` в значении, и все пробелы в начале/конце будут обрезаны. 255 [http://localhost:8111/add_node?lon=13.3&lat=53.2&addtags=natural=tree%7Cname=%20%20%20==Great%20Oak==] (создаёт точку с natural=tree и name="==Great Oak==") 256 - Если найдено пустое значение, тег будет удалён из объектов (checkbox-confirmation is needed) 256 257 [http://localhost:8111/load_and_zoom?addtags=wikipedia%3Ade=%7Cmaxspeed=&select=way23071688,way23076176,way23076177,&left=13.739727546842&right=13.740890970188&top=51.049987191025&bottom=51.048466954325]. 257 258 258 === Other commands===259 Remotecontrol allows other plugins to add additional commands. The other registers a RequestHandler class and specifies a command to be handled by this class. The command syntax has to be defined by the other plugin.260 261 Reverter plugin since version 27091 makes use of this feature.259 === Другие команды === 260 Удалённое управление позволяет различным модулям добавлять дополнительные команды. The other registers a RequestHandler class and specifies a command to be handled by this class. The command syntax has to be defined by the other plugin. 261 262 Модуль reverter с версии 27091 использует эту функцию. 262 263 263 264 ---- 264 265 265 Back to [[Help/Preferences/RemoteControl]][[br]]266 Back to [[Help/Preferences]][[br]]267 Back to [[Help]]266 Назад к [[wiki:Ru:Help/Preferences/RemoteControl|Удалённое управление]][[br]] 267 Назад к [[wiki:Ru:Help/Preferences|Настройки]][[br]] 268 Назад к [[wiki:Ru:Help|Основной странице справки]]