Constructor
new LayerEsriTile(url, options)
The Esri tile layer
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string | url for source | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
options |
object | config
Properties
|
- Source:
Extends
Members
(protected) _olLayer
- Inherited From:
- Source:
legendContent :string
get the legend content
Type:
- string
- Inherited From:
- Source:
loaded :boolean
Check if the layer is loaded
Type:
- boolean
- Inherited From:
- Source:
maxResolution :number|*
get the maximum resolution
Type:
- number | *
- Inherited From:
- Source:
maxZoom :number|*
get max zoom
Type:
- number | *
- Inherited From:
- Source:
minResolution :number|*
get the minimum resolution
Type:
- number | *
- Inherited From:
- Source:
minZoom :number|*
get min zoom
Type:
- number | *
- Inherited From:
- Source:
name :string
Get the layer name
Type:
- string
- Inherited From:
- Source:
olLayer
- Inherited From:
- Source:
opacity :number
Get the layer opacity
Type:
- number
- Inherited From:
- Source:
params :object
get the map get params
Type:
- object
- Inherited From:
- Source:
source
- Inherited From:
- Source:
url :string
get the url
Type:
- string
- Inherited From:
- Source:
visible :boolean
Get the layer visibility
Type:
- boolean
- Inherited From:
- Source:
zIndex :number
get the z index
Type:
- number
- Inherited From:
- Source:
Methods
(protected) _load() → {boolean}
base load function, sets _loaded = true if it is not already
- Inherited From:
- Source:
Returns:
if already loaded
- Type
- boolean
addLegendContent(additionalContentopt)
add additional content to the legend
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
additionalContent |
string |
<optional> |
'' | additional content for legend |
- Inherited From:
- Source:
getLegendDiv() → {string}
Get the legend html, be sure to only add to the DOM once
- Inherited From:
- Source:
Returns:
html for layer wrapped in a div
- Type
- string
refresh()
trick to refresh the layer
- Inherited From:
- Source: