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

Any idea why the Google Maps embed won't show the correct location? #668

Closed
GerretS opened this issue Aug 4, 2019 · 8 comments
Closed
Labels

Comments

@GerretS
Copy link
Contributor

GerretS commented Aug 4, 2019

On my newly created event, the embedded map seems to focus on coordinates 0,0

https://www.bridgetroll.org/events/486

Note that if I click on the address on the left, it opens Google Maps to the correct location.

image

@nerual
Copy link
Collaborator

nerual commented Oct 3, 2019

Here's the error message from the browser console:

js?key=AIzaSyAgKf99_jIqJFKdEEllWFZx5xerCzmdMdY&v=3.35&sensor=false&libraries=geometry:74 InvalidValueError: setCenter: not a LatLng or LatLngLiteral with finite coordinates: in property lat: NaN is not an accepted value

@michaelglass
Copy link
Member

This is a problem for non-us addresses. I'll look into it

@michaelglass
Copy link
Member

... if you manually assign latitude / longitude, I think it's fixed. I just fixed it for NextJournal https://www.bridgetroll.org/events/493

@GerretS
Copy link
Contributor Author

GerretS commented Oct 11, 2019

@michaelglass Where did you assign this data ? I don't see any options on the event edit page and also nothing on the location edit page.

@michaelglass
Copy link
Member

I did it ... via the rails console!

I guess the next step is add a UI for updating / setting lat / long on models.

@michaelglass
Copy link
Member

I manually updated your location though.

@michaelglass
Copy link
Member

moved to #791

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

3 participants