Class: Scalify filter:ngeoScalify

ngeo.misc.module:filters.Scalify

new Scalify($filter)

Format a number as a localized scale. For instance:

  • For 'fr-CH' the value 25000 will become '1 : 25 000'.
  • For 'en-US' the value 25000 will become '1 : 25,000'.

Example:

 <p>{{25000 | ngeoScalify}}</p>
Parameters:
Name Type Description
$filter angular.$filter

Angular filter

Returns:
function(number): string

A function to format number into a 'scale' string.