Modify

Opened 5 years ago

Last modified 5 years ago

#17778 new enhancement

Add zoom parameter for load_object remote command

Reported by: bagage Owned by: team
Priority: normal Milestone:
Component: Core remotecontrol Version: tested
Keywords: template_report Cc:

Description

Explanations

When you want to load an object in JOSM without knowing its position, you have to use load_objects command. However, when you load a single node in a new layer via http://127.0.0.1:8111/load_object?new_layer=true&objects=n4844156247, by default JOSM zooms to its maximum.
Since most aerial imageries does not handle that zoom level, you end up with a black background.

Would it be possible to add a zoom query param, so we could do something like http://127.0.0.1:8111/load_object?new_layer=true&objects=n4844156247&zoom=15 for instance? Thanks!

Please provide any additional information below. Attach a screenshot if possible.

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2019-06-01 23:08:04 +0200 (Sat, 01 Jun 2019)
Build-Date:2019-06-01 21:56:04
Revision:15150
Relative:URL: ^/trunk

Identification: JOSM/1.5 (15150 fr) Linux Debian GNU/Linux 10 (buster)
Memory Usage: 1037 MB / 4436 MB (599 MB allocated, but free)
Java version: 1.8.0_212-8u212-b03-2-b03, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1920x1080
Maximum Screen Size: 1920x1080
Java package: openjdk-8-jre:amd64-8u212-b03-2
Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-22
Dataset consistency test: No problems found

Plugins:
+ AddrInterpolation (34908)
+ HouseNumberTaggingTool (34977)
+ OpeningHoursEditor (34977)
+ PicLayer (34908)
+ buildings_tools (34982)
+ conflation (0.6.3)
+ jts (34908)
+ poly (34991)
+ scripting (30794)
+ terracer (34977)
+ todo (30306)
+ utilsplugin2 (34977)

Last errors/warnings:
- W: 'load_and_zoom' remote control request must have 'left' parameter
- W: 'load_and_zoom' remote control request must have 'right' parameter
- W: 'load_and_zoom' remote control request must have 'bottom' parameter
- W: 'load_and_zoom' remote control request must have 'top' parameter
- W: 'load_and_zoom' remote control request must have 'left' parameter
- W: 'load_and_zoom' remote control request must have 'right' parameter
- W: Unknown remote control parameter zoom, skipping it
- W: Unknown remote control parameter zoom, skipping it
- W: Unknown remote control parameter zoom, skipping it
- W: Unknown remote control parameter zoom, skipping it

Attachments (0)

Change History (1)

comment:1 by Don-vip, 5 years ago

Summary: Add zoom parameter for load_objects remote commandAdd zoom parameter for load_object remote command
Type: taskenhancement

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to bagage.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.