OpenStreetView icon indicating copy to clipboard operation
OpenStreetView copied to clipboard

OSV should provide some way easy to display full size version of the image

Open PetrDlouhy opened this issue 15 years ago • 17 comments

OSV should provide some way easy to display full size version of the image. It is the biggest usability issue for now, I think. It could be done by clicking on the image (maybe with some key modifier, or right clicking).

PetrDlouhy avatar Nov 22 '09 19:11 PetrDlouhy

Maybe we can get inspired by [1], where photos are clickable. [1] http://photosm.broadbox.de/

PetrDlouhy avatar Jan 03 '10 14:01 PetrDlouhy

yes this a priority to make openstreetview a honeypot

promeneur avatar Apr 10 '10 10:04 promeneur

I have written some code to popup the medium size, with a further link to the large size.

Test server is here: http://54.247.166.63:3000/ (for a limited time).

ojflewis avatar Apr 23 '12 12:04 ojflewis

i tested with firefox 11.0

it works

i suggest an improvement : add a way to switch from large size to medium size

when you display the large size there is only a way to retrurn to web pageusing the back arrow of the browser but no way to retrun to the medium size

promeneur avatar Apr 23 '12 12:04 promeneur

there is a pb

display large size then return to the map then you can't zoom in the map you must zoom out then you can zoom in again

promeneur avatar Apr 23 '12 12:04 promeneur

This seems to be a general problem which is already present on OSV. When you navigate away from a map page (e.g. to login) then hit "back", the + button no longer works. Please raise it as a separate bug - not sure if it's within my capabilities to fix. I agree that showing the large image on its own html page would be ideal but for now I think the solution works.

ojflewis avatar Apr 23 '12 14:04 ojflewis

As a tweak, I'm getting the large image to open in a new tab. This avoids the problem with the back button, without solving it.

ojflewis avatar Apr 23 '12 16:04 ojflewis

it's a bit strange ( heterogeneous ) but it works

promeneur avatar Apr 25 '12 07:04 promeneur

when will this function be added to openstreetview.org ?

promeneur avatar Apr 25 '12 08:04 promeneur

When John has taken a look and confirmed he is happy with it, I will update the code on Github and issue a "pull request", which should make it easy for him to merge in my changes.

ojflewis avatar Apr 25 '12 14:04 ojflewis

Hello, actually I had missed this entire conversation, only noticed because I glanced at the homepage of github! In Safari the info box never resizes to the full size of the image, it stays really small. Good job taking this on though :-)

johnmckerrell avatar Apr 26 '12 14:04 johnmckerrell

I had also posted a message to the OSM Photos mailing list but I don't know if you saw that. The test server has been running really slowly, so I'm wondering if the box didn't resize because the medium size photo hadn't finished loading. I restarted the server and tried the test site on Safari on ipad and it works fine. I don't have access to Safari on a Mac. Could you let me know if there's still problem? If there is, it will be generic to OpenLayers as I used standard code from their examples page.

ojflewis avatar Apr 27 '12 12:04 ojflewis

I just tried again and it didn't work I'm afraid. Right now I don't have any time to look into this but if you do get to the stage of sending a pull request I should be able to manage that!

johnmckerrell avatar Apr 27 '12 12:04 johnmckerrell

Strange. I will install Safari on Windows and see if I can replicate the problem.

ojflewis avatar Apr 27 '12 13:04 ojflewis

OK, so it seems to work on Safari on Windows but in the process of looking into this, I figured the Openlayers library has changed a bit since you started OpenStreetView and some bugs might be coming from not using the latest version. I updated the code on the test server to link directly to the latest Openlayers. This broke the ability to open the popups on an ipad, so I also added a "touchstart" event. The popups are now working on Safari for Windows and Safari for ipad. I pushed these changes to Github in case anyone wants to look at the code. Could someone have another look on a Mac? Please note the test server can be very slow - please leave the window with the popup open for a while - it will only resize when the medium size picture has finished loading.

ojflewis avatar Apr 30 '12 12:04 ojflewis

Still doesn't seem to be working on Safari here but at this point I'm willing to leave it, I'll try to have a look when doing the merge.

johnmckerrell avatar Apr 30 '12 13:04 johnmckerrell

OK thanks. I will issue the pull request. Once it's running on your server I will try to debug it again. Note that my code creates a link to openlayers.org. Not sure if that's the right way to do it or whether a new local copy of the current openlayers.js is required.

ojflewis avatar Apr 30 '12 16:04 ojflewis