Skip to content

Commit

Permalink
Merge pull request #4181 from camptocamp/update_filter_doc
Browse files Browse the repository at this point in the history
Update doc for number filter
  • Loading branch information
ger-benjamin authored Oct 2, 2018
2 parents 1fbc303 + 2860450 commit c1bae83
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/services/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,27 +181,22 @@ ngeo.module.filter('ngeoUnitPrefix', ngeo.UnitPrefix);
/**
* Format a couple of numbers as number coordinates.
*
* Example without parameters (en-US localization):
* Example without parameters:
*
* <p>{{[7.1234, 46.9876] | ngeoNumberCoordinates}}</p>
* <!-- will Become 7 47 -->
*
* Example with defined fractionDigits and template (en-US localization):
*
* <!-- With en-US localization -->
* <p>{{[7.1234, 46.9876] | ngeoNumberCoordinates:2:'co {x} E; {y} N'}}</p>
* <!-- will Become co 7.12 E; 46.99 N -->
*
* Example without fractionDigits but with defined template and localize:
*
* <!-- With en-US localization (opt_localize can be true or undefined) -->
* <p>{{[2600000, 1600000] | ngeoNumberCoordinates:0:'{x}, {y}'}}</p>
* <!-- will Become 2,600,000, 1,600,000 -->
* <br/>
* <!-- With fr-CH localization (opt_localize can be true or undefined) -->
* <!-- With en-US localization -->
* <p>{{[2600000, 1600000] | ngeoNumberCoordinates:0:'{x}, {y}'}}</p>
* <!-- will Become 2'600'000, 1'600'000 -->
* <!-- will Become 2,600,000, 1,600,000 -->
* <br/>
* <!-- With en-US localization but with localization to false -->
* <!-- With fr-CH localization -->
* <p>{{[2600000, 1600000] | ngeoNumberCoordinates:0:'{x}, {y}'}}</p>
* <!-- will Become 2'600'000, 1'600'000 -->
*
Expand Down

0 comments on commit c1bae83

Please sign in to comment.