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

Use default location lat lon for /map/ #7046

Merged
merged 5 commits into from
Jan 2, 2020

Conversation

nstjean
Copy link
Contributor

@nstjean nstjean commented Dec 26, 2019

Fixes #7045 (<=== Add issue number here)

  • Fix route error so /map/ displays the same as /map/:layernames
  • If lat and lon isn't specified in the params, display the user's profile location. If the user has no profile location, show a default lat and lon.

@nstjean
Copy link
Contributor Author

nstjean commented Dec 26, 2019

When logged in with a profile location saved:
🎈 Public Lab: Map - Google Chrome_006

When not logged in / no profile location:
🎈 Public Lab: Map - Google Chrome_005

@nstjean
Copy link
Contributor Author

nstjean commented Dec 27, 2019

I discovered that if a lat or lon of 0 was passed in via the params or by a user's profile that it was evaluating as false and using the default value instead. I have corrected this.

@nstjean
Copy link
Contributor Author

nstjean commented Jan 1, 2020

I made the clean up changes in #7061

@jywarren
Copy link
Member

jywarren commented Jan 2, 2020

Should this be merged now? Before or after #7061? Thanks!!!!

@nstjean
Copy link
Contributor Author

nstjean commented Jan 2, 2020

@jywarren Before, thank you!!!

@jywarren jywarren merged commit f18afec into publiclab:master Jan 2, 2020
@jywarren
Copy link
Member

jywarren commented Jan 2, 2020

:-) all good i guess! Thanks!

@nstjean nstjean deleted the map-default-values branch January 2, 2020 18:24
Tlazypanda pushed a commit to Tlazypanda/plots2 that referenced this pull request Jan 14, 2020
* change default values to use params, then user tags, then default

* clean up code

* fix rubocop error, rename user location variables

* fix trailing whitespace

* fix bug where lat or lon of 0 is not used
vinitshahdeo pushed a commit to vinitshahdeo/plots2 that referenced this pull request Feb 1, 2020
* change default values to use params, then user tags, then default

* clean up code

* fix rubocop error, rename user location variables

* fix trailing whitespace

* fix bug where lat or lon of 0 is not used
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

Successfully merging this pull request may close these issues.

Fix /map/ when no layers are specified
3 participants