Class: Layer

Layer

Main constructor of the class. Creates a layer
with parameters specified by the user


new Layer(userParameters)

Parameters:
Name Type Description
userParameters string | Mx.parameters.Layer

parameters
provided by the user

Source:

Extends

Members


<static, constant> LEGEND_DEFAULT :string

Image PNG for legend default

Type:
  • string
Source:

<static, constant> LEGEND_ERROR :string

Image PNG for legend default

Type:
  • string
Source:

Methods


fire()

Sets the callback when the instace is loaded

Inherited From:
Source:

getImpl()

This function provides the implementation
of the object

Inherited From:
Source:
Returns:
Type
Object

getLegendURL()

This function checks if an object is equals
to this layer

Source:

getOpacity()

This function gets the opacity of this layer

Source:

getZIndex()

This function gets the z-index of this layer

Source:

inRange()

This function indicates if the layer is in range

Source:

isQueryable()

This function indicates if the layer is visible

Source:

isVisible()

This function indicates if the layer is visible

Source:

on()

Sets the callback when the instace is loaded

Inherited From:
Source:

once()

Sets the callback when the instace is loaded

Inherited From:
Source:

refresh()

This function refreshes the state of this
layer

Source:

setImpl(impl)

This function set implementation of this control

Parameters:
Name Type Description
impl M.Map

to add the plugin

Inherited From:
Source:

setLegendURL()

This function checks if an object is equals
to this layer

Source:

setOpacity()

This function sets the opacity of this layer

Source:

setVisible()

This function sets the visibility of this layer

Source:

setZIndex()

This function sets the z-index for this layer

Source:

un()

Sets the callback when the instace is loaded

Inherited From:
Source: