Opened 7 weeks ago
Last modified 7 weeks ago
#23945 new enhancement
[PATCH] ImageViewerDialog.displayImages() - do not re-center if the image has not changed
Reported by: | IreuN | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core image mapping | Version: | |
Keywords: | Cc: |
Description (last modified by )
Hello!
I'm asking you if mention method could be changed to not zoom map to the image, in case the image is the same one.
This could be benefitial to Mapillary plugin, which has to re-display the image after sequence has been downloaded (without it, the previous/next buttons are disabled.
as i can see there is already imageChanged = currentEntry != entry;
which could be fed to the if
statement.
imageChanged = currentEntry != entry; if (centerView && entry != null && MainApplication.isDisplayingMapView() && entry.getPos() != null) { MainApplication.getMap().mapView.zoomTo(entry.getPos()); }
josm/trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java#L893
Attachments (1)
Change History (5)
comment:1 by , 7 weeks ago
comment:3 by , 7 weeks ago
Summary: | ImageViewerDialog.displayImages() - do not re-center if the image has not changed → [PATCH] ImageViewerDialog.displayImages() - do not re-center if the image has not changed |
---|
by , 7 weeks ago
Attachment: | 78e599ef8d48e96abbec01c697e6987f8dc4d7e5.patch added |
---|
comment:4 by , 7 weeks ago
Component: | Core → Core image mapping |
---|---|
Description: | modified (diff) |
Video of what this causes: https://streamable.com/osypzs