- Source:
Methods
-
<static> addParameters()
-
- Source:
-
<static> beautifyAttribute(String)
-
formated String
Parameters:
Name Type Description String
attributeName - Source:
Returns:
formated String
- Type
- Number
-
<static> beautifyAttributeName(String)
-
formated String
Parameters:
Name Type Description String
attributeName - Source:
Returns:
formated String
- Type
- Number
-
<static> beautifyString(String)
-
formated String
Parameters:
Name Type Description String
String text to format string
- Source:
Returns:
beautifyString formated String
- Type
- String
-
<static> concatUrlPaths(String)
-
formated String
Parameters:
Name Type Description String
attributeName - Source:
Returns:
formated String
- Type
- Number
-
<static> decodeHtml(encodedHtml)
-
This function decodes html entities into
textParameters:
Name Type Description encodedHtml
String encoded text with HTML entities
- Source:
Returns:
text decoded
- Type
- String
-
<static> enableTouchScroll()
-
TODO
- Source:
-
<static> escapeJSCode()
-
TODO
- Source:
-
<static> escapeXSS()
-
TODO
- Source:
-
<static> extend()
-
- Source:
-
<static> extends(impl)
-
This function set implementation of this control
Parameters:
Name Type Description impl
M.Map to add the plugin
- Source:
-
<static> fillResolutions(minResolution, maxResolution, numZoomLevels)
-
This function generates the resolution array
from min max resolutionsParameters:
Name Type Description minResolution
Number maxResolution
Number numZoomLevels
Number - Source:
Returns:
the resolutions
- Type
- Array.<Number>
-
<static> generateColorScale()
-
This function gets an array scale color in hexadecimal format
- Source:
Returns:
array scale color in hexadecimal format
- Type
- Array.<string>
-
<static> generateIntervals(array, breaks)
-
This function returns an array whith breaks between head and tail of an array
Parameters:
Name Type Description array
array breaks
number - Source:
Returns:
- Type
- array
-
<static> generateRandom()
-
- Source:
-
<static> generateResolutionsFromExtent(maxScale, minScale, zoomLevels, units)
-
This function generates the resolution array
from min max scalesParameters:
Name Type Description maxScale
Number minScale
Number zoomLevels
Number units
String - Source:
Returns:
the resolutions
- Type
- Array.<Number>
-
<static> generateResolutionsFromScales(maxScale, minScale, zoomLevels, units)
-
This function generates the resolution array
from min max scalesParameters:
Name Type Description maxScale
Number minScale
Number zoomLevels
Number units
String - Source:
Returns:
the resolutions
- Type
- Array.<Number>
-
<static> generateStyleLayer(options, layer)
-
This function returns the appropiate style to geomtry layer
with parameter options.Parameters:
Name Type Description options
object style options
layer
M.layer.Vector -
- Source:
Returns:
- Type
- M.style.Simple
-
<static> getGeometryType(layer)
-
This function gets the geometry type of a layer.
Parameters:
Name Type Description layer
M.layer.Vector layer vector
- Source:
Returns:
geometry type of layer
- Type
- string
-
<static> getImageSize(url)
-
This functions returns the width and height of a image from src
Parameters:
Name Type Description url
string - Source:
Returns:
- Type
- Array.<number>
-
<static> getOpacityFromRgba()
-
TODO
- Source:
-
<static> getParameterValue()
-
- Source:
-
<static> getResolutionFromScale(scale, units)
-
This function calculates the resolution
for a provided scaleParameters:
Name Type Description scale
Number units
String - Source:
Returns:
the resolution for the specified scale
- Type
- Number
-
<static> getRgba(color, opacity)
-
This function returns a color as string with opacity
Parameters:
Name Type Description color
string opacity
number - Source:
Returns:
- Type
- string
-
<static> getScaleFromResolution(resolution, units)
-
This function calculates the scale
for a provided resolutionParameters:
Name Type Description resolution
Number units
String - Source:
Returns:
the scale for the specified resolution
- Type
- Number
-
<static> getTextFromHtml(html)
-
This function gets text content from
an html string or elementParameters:
Name Type Description html
HTMLElement | String string or element with HTML tags
- Source:
Returns:
text contained by the HTML tags
- Type
- String
-
<static> getWMSGetCapabilitiesUrl()
-
- Source:
-
<static> getWMTSGetCapabilitiesUrl()
-
- Source:
-
<static> htmlToString()
-
- Source:
-
<static> includes()
-
- Source:
-
<static> inverseColor(color)
-
This function gets the inverse of a color. The inverse of a color
is the diff between the hexadecimal value of white (0xFFFFFF)
and the hexadecimal value of the color.Parameters:
Name Type Description color
string - Source:
Returns:
inverse color in hexadecimal format
- Type
- string
-
<static> isArray()
-
- Source:
-
<static> isBoolean()
-
- Source:
-
<static> isFunction()
-
- Source:
-
<static> isGeometryType()
-
TODO
- Source:
-
<static> isNull()
-
- Source:
-
<static> isNullOrEmpty(obj)
-
This function checks if the obj is null or empty
Parameters:
Name Type Description obj
string | Object | Array.<*> - Source:
Returns:
- Type
- boolean
-
<static> isObject()
-
- Source:
-
<static> isString()
-
- Source:
-
<static> isUndefined()
-
- Source:
-
<static> isUrl()
-
- Source:
-
<static> normalize()
-
- Source:
-
<static> rgbaToHex()
-
TODO
- Source:
-
<static> rgbToHex()
-
TODO
- Source:
-
<static> sameUrl()
-
TODO
- Source:
-
<static> setEquals(array, array2)
-
This function returns if two sets are equals
Parameters:
Name Type Description array
array array2
array - Source:
Returns:
- Type
- bool
-
<static> stringToHtml()
-
- Source: