Class: LayerEsriTile

LayerEsriTile

Esri tile

Constructor

new LayerEsriTile(url, options)

The Esri tile layer
Parameters:
Name Type Description
url string url for source
options object config
Properties
Name Type Attributes Default Description
id string <optional>
layer id
name string <optional>
Unnamed Layer layer name
opacity number <optional>
1 opacity
visible boolean <optional>
true default visible
minZoom number <optional>
min zoom level, 0 - 28
maxZoom number <optional>
max zoom level, 0 - 28
params object <optional>
{} the get parameters to include to retrieve the layer
zIndex number <optional>
0 the z index for the layer
loadCallback function <optional>
function to call on load, context this is the layer object
legendCollapse boolean <optional>
false if the legend item should be initially collapsed
legendCheckbox boolean <optional>
true if the legend item should have a checkbox for visibility
legendContent boolean <optional>
additional content to add to the legend
useEsriStyle boolean <optional>
false if the map service style should be used
Source:

Extends

Members

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:

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: