Constructor
new LayerBaseVectorEsri(url, options)
The base vector layer
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string | url for source | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
options |
object | config
Properties
|
- Source:
Extends
Members
autoLoad :boolean
get if the layer is autoloaded
Type:
- boolean
- Inherited From:
- Source:
features :Array.<ol.Feature>
array of ol features
Type:
- Array.<ol.Feature>
- 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:
mapCrs :string|*
get the map CRS if it is defined by the map move object
Type:
- string | *
- Inherited From:
- Source:
mapMove :MapMoveCls|*
get the map move object
Type:
- MapMoveCls | *
- Inherited From:
- Source:
mapMoveParams :object
map move params
Type:
- object
- 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 :ol.layer.Vector|ol.layer.Base
Type:
- ol.layer.Vector | ol.layer.Base
- Inherited From:
- Source:
onDemandDelay :number|*
get on demand delay in miliseconds
Type:
- number | *
- 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 :*
get the layer source
Type:
- *
- Inherited From:
- Source:
style :ol.Style|styleFunc
get the style definition
Type:
- ol.Style | styleFunc
- Overrides:
- Source:
url :string
get the url
Type:
- string
- Inherited From:
- Source:
zIndex :number
get the z index
Type:
- number
- Inherited From:
- Source:
Methods
(protected) _load() → {boolean}
trigger load features
- Overrides:
- Source:
Returns:
if already loaded
- Type
- boolean
addFeatures(featureCollection)
add feature collection
Parameters:
Name | Type | Description |
---|---|---|
featureCollection |
object | features as esrijson |
- Overrides:
- Source:
addLegendContent(additionalContentopt)
add additional content to the legend
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
additionalContent |
string |
<optional> |
'' | additional content to add to legend |
- Overrides:
- Source:
clear()
clear features in the layer
- 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
mapMoveBefore(zoom, evtTypeopt) → {boolean}
Before call to map move callback, can prevent call by returning false
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
zoom |
number | zoom level | |
evtType |
string |
<optional> |
undefined for initial load, otherwise one of 'change:center', 'change:resolution' |
- Overrides:
- Source:
Returns:
if the call should proceed
- Type
- boolean
mapMoveCallback(d)
callback function on map move
Parameters:
Name | Type | Description |
---|---|---|
d |
object | the json response |
- Overrides:
- Source:
mapMoveMakeGetParams(extent, zoomLevel)
callback to generate the parameters passed in the get request
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
extent |
object | extent object
Properties
|
|||||||||||||||
zoomLevel |
number | zoom level |
- Overrides:
- Source:
refresh()
trick to refresh the layer
- Inherited From:
- Source: