-
Notifications
You must be signed in to change notification settings - Fork 405
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
Mapstore2 Elevation Slider tool #1697
Conversation
…e v6.10.0 and npm 3.10.10 on windows10 64bit
web/client/translations/data.de-DE
Outdated
@@ -53,6 +54,7 @@ | |||
"save": "Speichern", | |||
"saveAs": "Speichern als...", | |||
"opacity": "Deckkraft", | |||
"elevation": "Elevation", | |||
"close": "Schliessen", |
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.
should be translated this?
</div> | ||
); | ||
}, | ||
calcolateRange(values, min, max, dif, firstVal, lastVal) { |
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.
calculate
let arr = []; | ||
let percText = ""; | ||
let range = {min: firstVal, max: lastVal}; | ||
values.map(function(currentValue, i) { |
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.
map requires a pure function, if you have side effects use forEach
<Slider | ||
snap= {true} | ||
start={[parseFloat((start))] || [0.0]} | ||
range= {this.calcolateRange(values, min, max, dif, firstVal, lastVal)} |
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.
calculate
package.json
Outdated
@@ -161,6 +162,7 @@ | |||
"url": "0.10.3", | |||
"uuid": "3.0.1", | |||
"w3c-schemas": "1.3.1", | |||
"wnumb": "1.1.0", |
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.
we already have I18N.NumberFormat for number formatting
Fix requested changes to Elev Slider
be2ae87
to
ecc1f84
Compare
Layer configuration example:
Full example: