Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Mapillary to detail pages #480

Closed
holgerd opened this issue Nov 14, 2016 · 19 comments
Closed

Add Mapillary to detail pages #480

holgerd opened this issue Nov 14, 2016 · 19 comments
Assignees
Labels

Comments

@holgerd
Copy link
Member

holgerd commented Nov 14, 2016

Suggestion from the OSM forum:
Add Mapillary and OpenStreetView to detail pages
https://forum.openstreetmap.org/viewtopic.php?id=55958

Sounds like a good idea, maybe as an addition instead of a replacement of Google Streetview.

https://github.com/mapillary/mapillary-js seems to be free for non-profits and I did not find a widget option for OSV yet.

@holgerd
Copy link
Member Author

holgerd commented Jan 9, 2017

I've created a mapillary user "sozialhelden" for this and put in in the shared 1p-vault.

@holgerd holgerd modified the milestones: tbd on Jan 10,17, HolgerIsWorkingOnThis Jan 9, 2017
@holgerd holgerd changed the title Add Mapillary and OpenStreetView to detail pages Add Mapillary to detail pages Jan 10, 2017
@holgerd
Copy link
Member Author

holgerd commented Jan 10, 2017

as step one, just Mapillary.

@schultyy schultyy self-assigned this Jan 10, 2017
@holgerd
Copy link
Member Author

holgerd commented Jan 19, 2017

@schultyy In case there is no mapillary photo, I now see a black rectangle. Example: https://staging.wheelmap.org/nodes/3017232832

Can the default background color of the widget be white or be omitteded completely?

@schultyy
Copy link
Collaborator

schultyy commented Jan 19, 2017

@holgerd Sure, I'll have a look into that. I'll try to not render it then if there's nothing to show.

@holgerd
Copy link
Member Author

holgerd commented Jan 20, 2017

@schultyy Yes, not rendering if empty is a good soloution if that's possible!

@schultyy
Copy link
Collaborator

@holgerd On Staging there's now a version available which only renders Mapillary if there's actual content available. Otherwise it stays hidden.

@holgerd
Copy link
Member Author

holgerd commented Jan 20, 2017

great! LGTM

@schultyy
Copy link
Collaborator

As discussed on Slack this will go into production beginning next week

@Svenyo
Copy link
Collaborator

Svenyo commented Feb 10, 2017

@schultyy cc @holgerd Seems like the mapillary view we've implemented is not complete.
Peter from Mapillary told me in an email:

"There are however missing assets that can't be loaded like https://asset3.wheelmap.org/assets/stepper-play.svg that make the icons for navigation not be visible. Wold be great if you can fix that for a better integration :)"

@peterneubauer
Copy link

Yes, I'm seeing the missing assets in e.g. https://wheelmap.org/nodes/2370599905

@1000miles 1000miles added the next label Feb 13, 2017
@ghost ghost modified the milestones: Start February 14, start on Jan 16,17 Feb 14, 2017
@Svenyo
Copy link
Collaborator

Svenyo commented Feb 14, 2017

Thanks @peterneubauer for commenting on this. Could you write down your further recommendations on how to fix the navigation icons?

@peterneubauer
Copy link

As you can see,
the icons are supposed to be under

https://asset3.wheelmap.org/assets/stepper-left.svg

etc, but give a 500 there.

Not sure how to fix it on your server but either move the MpaillaryJS script or the .svg assets somewhere so they can be found?

fullscreen_2_14_17__12_51_pm

@schultyy
Copy link
Collaborator

schultyy commented Feb 15, 2017

So I found out why there's a 500:

2017/02/15 09:51:01 [error] 22604#0: *46493905 rewrite or internal redirection cycle while internally redirecting to "/assets/stepper-play.svg.html.html.html.html.html.html.html.html.html.html.html", client: <REDACTED>, server: asset0.wheelmap.org, request: "GET /assets/stepper-play.svg HTTP/1.1"

It appears to be a NGINX rule which is either missing or not working properly.

UPDATE:

On Staging we get 404 errors instead of 500.

@schultyy
Copy link
Collaborator

To check whether the problem is in the NGINX configuration or with wheelmap, I created a small example application with the snippet from the Mapillary-js GitHub page. There everything works just fine. Even though the browser receives HTTP 500 errors right now, they occur because the file cannot be found.
My solution on this is to copy over the missing assets from the GitHub repository into our assets directory to ensure they can be loaded properly.

@Svenyo
Copy link
Collaborator

Svenyo commented Feb 15, 2017

Thanks, @schultyy, let's try this.

@1000miles
Copy link
Collaborator

1000miles commented Feb 16, 2017

@Svenyo We have deployed our fix to staging today. Can you please review the fix, e.g. via this node? https://staging.wheelmap.org/nodes/1229408775

Merci.

00000264

@Svenyo
Copy link
Collaborator

Svenyo commented Feb 16, 2017

@1000miles Looks great! Can be deployed to prodution.

@schultyy
Copy link
Collaborator

Is in production now 🙆 .

@holgerd holgerd removed the review label Feb 16, 2017
@peterneubauer
Copy link

Great, looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants