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

Optionally format numbers in the Feature Info panel according to user locale #1303

Closed
wants to merge 8 commits into from

Conversation

RacingTadpole
Copy link
Contributor

Implements a template tag which formats the number according to the user's locale, if available.
Reverses the default so that, without this tag, numbers are shown without commas. This was chosen because frequently numbers are IDs or phone numbers.

Eg. {{#localeFormat}}1234567.8{{/localeFormat}} => 1,234,567.8.

Addresses #1172. It does not quite fix it, as to be consistent, the same behaviour should apply to the legend. This will be the subject of an upcoming PR.

@RacingTadpole
Copy link
Contributor Author

Actually I have a better idea, based on #1302 - set the formatting directly in tableStyle, where it can be used by both the Feature Info Panel and the Legend (and any future functionality).

@RacingTadpole RacingTadpole deleted the 1172_commas branch August 1, 2016 02:35
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.

1 participant