mapfish.Util

Utility functions

Summary
mapfish.UtilUtility functions
Functions
sumReturn the sum of the elements of an array.
maxReturn the max of the elements of an array.
minReturn the min of the elements of an array.
arrayEqualCompare two arrays containing primitive types.
relativeToAbsoluteURL

Functions

sum

mapfish.Util.sum = function(array)

Return the sum of the elements of an array.

max

mapfish.Util.max = function(array)

Return the max of the elements of an array.

min

mapfish.Util.min = function(array)

Return the min of the elements of an array.

arrayEqual

mapfish.Util.arrayEqual = function(a,
b)

Compare two arrays containing primitive types.

Parameters

a{Array} 1st to be compared.
b{Array} 2nd to be compared.

Returns

{Boolean} True if both given arrays contents are the same (elements value and type).

relativeToAbsoluteURL

mapfish.Util.relativeToAbsoluteURL = function(source)

Parameters

source{String} the source URL

Returns

{String} An absolute URL

mapfish.Util.sum = function(array)
Return the sum of the elements of an array.
mapfish.Util.max = function(array)
Return the max of the elements of an array.
mapfish.Util.min = function(array)
Return the min of the elements of an array.
mapfish.Util.arrayEqual = function(a,
b)
Compare two arrays containing primitive types.
mapfish.Util.relativeToAbsoluteURL = function(source)
Close