Id: Mapillary window: resizing doesn't work properly.

Created on 2 May 2019  Â·  9Comments  Â·  Source: openstreetmap/iD

To reproduce:
1) Open a mapillary image with preview.ideditor.com/master
2) Make the window of the image larger.
3) Observe this:
image

bug streetlevel

All 9 comments

_A bit of debugging:_ I could not see any relevant css that is different from osm.org to preview. So I guess its not about the reworked css for the panels (that was recently, right). Maybe it has to do with https://github.com/openstreetmap/iD/pull/6166? Not from the release notes, though (https://github.com/mapillary/mapillary-js/releases). But they did change a lot with https://blog.mapillary.com/update/2019/04/16/mjs-combined-panning.html.

Yeah, I'm not sure this is an iD-specific issue. Note that a workaround is to resize the viewer, close it, then reopen it.

@cbeddow Any thoughts on this?

I remember this happening quite a while ago, then seemingly fixed, and now it's back again - Mapillary codebase changes?..

It seems like a CSS conflict, but not clear as mentioned. MapillaryJS should automatically upgrade itself, but we'd want to debug and find the current version. Can we check somehow if it's 2.18.0? When you resize, then MJS calls a resize() function on itself, but maybe is trying to target the wrong div, or an empty variable. I assume overall it may be some lag time causing this to not find what it's trying to resize sometimes.

It would be great if this would be fix. I now need to open another tab which is prett annoying.

Testing today for me as well and not working here. I will see if we can get this fixed ASAP but it probably is a failure to recognize the window resize and apply .resize() to the Mapillary viewer div.

image

This turned out to be an iD issue after all. Oops!

The viewer resize event was only getting sent to the last viewer to register for it. This also meant that Bing Streetside images would get stretched instead of scaled. Congrats to OpenStreetCam on landing last alphabetically 😅

Thanks for your patience on this everyone!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SviMik picture SviMik  Â·  25Comments

hajo4 picture hajo4  Â·  33Comments

bhousel picture bhousel  Â·  19Comments

skylerbunny picture skylerbunny  Â·  22Comments

Haikuch picture Haikuch  Â·  27Comments