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

TypeError: Cannot read property 'setCenter' of null #702

Open
dryan opened this issue Oct 3, 2018 — with Sentry for Ragtag · 1 comment
Open

TypeError: Cannot read property 'setCenter' of null #702

dryan opened this issue Oct 3, 2018 — with Sentry for Ragtag · 1 comment

Comments

Copy link
Contributor

dryan commented Oct 3, 2018

https://sentry.ragtag.org/ragtag/nomad-prod/issues/122/

TypeError: Cannot read property 'setCenter' of null
  at None (/carpools/bc1101a6-a7a1-41a2-b10a-2e495d133255/edit:302:13)
@dryan
Copy link
Contributor Author

dryan commented Oct 3, 2018

Looks like the call to map.setCenter can be invoked before the map is initialized. Also the map variable is set as a global variable. If that's the intention, do it explicitly with window.map =. Though I don't see why we need it to be global.

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

No branches or pull requests

1 participant