# new ArcGISLayer(url, opts)
Initialization object
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
url |
string
|
ARCGIS service URL. |
||
opts |
object
|
ArcGIS Rest feature layer options. |
||
name |
string
|
<optional> |
Layer name |
|
order |
number
|
<optional> |
The order for layer rendering. At rendering time, the layers will be ordered, first by order and then by position. When undefined, a order of 0 is assumed for layers that are added to the map's layers collection. |
|
visible |
boolean
|
<optional> |
true | Visibility |
opacity |
number
|
<optional> |
1 | Opacity (0, 1). |
attributions |
string
|
<optional> |
Attributions. |
|
obliqueProjection |
ObliqueProjections
|
<optional> |
none | Set how the vector layer will reproject in oblique mode. |
- Tutorials:
Example
const options = { url :"https://www.sample-url.com/tiles/{x}/{y}/{z}" };
const layer = new Vexcel.Layers.ARCGISLayer(options);
Extends
Classes
Methods
# getAttributions() → {string}
Gets the attributions of the layer.
Attributions of the layer.
string
# getBoundingBox() → {Extent}
Gets the bounding box of features in the layer
- Overrides:
bounding box
# getMaxZoom() → {number}
Gets the maximum zoom level of the layer.
- Overrides:
The maximum zoom level of the layer.
number
# getMinZoom() → {number}
Gets the minimum zoom level of the layer.
- Overrides:
The minimum zoom level of the layer.
number
# getObliqueProjection() → {string}
Gets the oblique projection of the layer.
- Overrides:
The oblique projection of the layer.
string
# getOpacity() → {number}
Gets the opacity of the layer (between 0 and 1).
- Overrides:
The opacity of the layer.
number
# getVisible() → {boolean}
Gets the visibility of the layer (true
or false
).
- Overrides:
The visibility of the layer.
boolean
# setAttributions(attributions)
Sets the attributions of the layer.
Parameters:
Name | Type | Description |
---|---|---|
attributions |
string
|
Attributions. Can be passed as string. |
# setMaxZoom(maxZoom)
Sets the maximum zoom (exclusive) at which the layer is visible. Note that the zoom levels for layer visibility are based on the view zoom level, which may be different from a tile source zoom level.
Parameters:
Name | Type | Description |
---|---|---|
maxZoom |
number
|
The maximum zoom of the layer. |
- Overrides:
# setMinZoom(minZoom)
Sets the minimum zoom (inclusive) at which the layer is visible. Note that the zoom levels for layer visibility are based on the view zoom level, which may be different from a tile source zoom level.
Parameters:
Name | Type | Description |
---|---|---|
minZoom |
number
|
The minimum zoom of the layer. |
- Overrides:
# setObliqueProjection(obliqueProjection)
Sets the oblique projection of the layer. Note:
- 'none' it´s set, the vector layer will not reprojects on oblique mode.
- 'dtm' the layer will reprojects the points on the dtm surface
- 'dsm' the layer will reprojects the points on the dsm surface, if there´s no DSM available DTM will be used instead.
Parameters:
Name | Type | Description |
---|---|---|
obliqueProjection |
ObliqueProjections
|
The oblique projection of the layer. |
- Overrides:
- See:
# setOpacity(opacity)
Sets the opacity of the layer, allowed values range from 0 to 1.
Parameters:
Name | Type | Description |
---|---|---|
opacity |
number
|
The opacity of the layer. |
- Overrides:
# setVisible(visible)
Sets the visibility of the layer (true
or false
).
Parameters:
Name | Type | Description |
---|---|---|
visible |
boolean
|
The visibility of the layer. |
- Overrides: