This repository has been archived by the owner on Aug 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Add year slider to map page #1317
Merged
flibbertigibbet
merged 4 commits into
azavea:develop
from
flibbertigibbet:feature/kak/map-date-range-slider#1292
Oct 25, 2019
Merged
Add year slider to map page #1317
flibbertigibbet
merged 4 commits into
azavea:develop
from
flibbertigibbet:feature/kak/map-date-range-slider#1292
Oct 25, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Let user set year via a slider at the bottom of the map page for the precipitation layer (only layer with a date range currently). Closes #1292.
flibbertigibbet
added this to the Geospatial Apps Sprint 10/19/2019-11/01/2019 milestone
Oct 24, 2019
Created #1318 for the 'play' button. |
@alexelash is off for a few weeks, so I don't think we should block anything waiting for design, but I think this is pretty close to the wireframes, albeit keeping most of the default noUiSlider styling: diff --git a/src/angular/planit/src/assets/sass/pages/_map.scss b/src/angular/planit/src/assets/sass/pages/_map.scss
index 0ff73b8a..57222cfa 100644
--- a/src/angular/planit/src/assets/sass/pages/_map.scss
+++ b/src/angular/planit/src/assets/sass/pages/_map.scss
@@ -49,4 +49,22 @@ app-map {
}
}
}
+
+ .slider {
+ position: absolute;
+ bottom: 5rem;
+ left: 5rem;
+ right: 5rem;
+ background: $dark-grey-background;
+ padding: 10px 30px 40px 20px;
+ border-radius: 15px;
+ width: auto;
+
+ .noUi-pips {
+ color: $white;
+ }
+ .noUi-marker, .noUi-marker-large {
+ background: $neutral-2;
+ }
+ }
} |
maurizi
suggested changes
Oct 24, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, nice and simple.
I left a few minor comments, and some interim CSS you can apply until @alexelash is available.
Update as user drags instead of on release. Co-Authored-By: Michael Maurizi <mmaurizi@azavea.com>
Co-Authored-By: Michael Maurizi <mmaurizi@azavea.com>
maurizi
approved these changes
Oct 25, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Let user modify the map layer year via a slider at the bottom of the map page. (The precipitation layer is the only layer with a date range currently).
Demo
Notes
@azavea/temperate-design this is an unstyled
nouislider
component; documentation on styling fornouislider
is here and the default component styles are here.Testing Instructions
Closes #1292.