Contents
How is wmslayer used in OGC Web Map Services?
The WMSLayer is used to create layers based on OGC Web Map Services (WMS). The WMSLayer initially executes a WMS GetCapabilities request, which might require CORS or a proxy page. See the properties for a list of all the properties that may be passed into the constructor. Any properties can be set, retrieved or listened to.
When to use ArcGIS API for JavaScript 4.4?
Since: ArcGIS API for JavaScript 4.4 The WMSLayer is used to create layers based on OGC Web Map Services (WMS). The WMSLayer initially executes a WMS GetCapabilities request, which might require CORS or a proxy page.
What happens to layer in ArcGIS API for JavaScript?
Since: ArcGIS API for JavaScript 4.17 Destroys the layer and any associated resources (including its portalItem, if it is a property on the layer). The layer can no longer be used once it has been destroyed. The destroyed layer will be removed from its parent object like Map, WebMap, WebScene, Basemap, Ground, or GroupLayer.
What do you need to know about wmslayer?
The maximum scale (most zoomed in) at which the layer is visible in the view. The minimum scale (most zoomed out) at which the layer is visible in the view. The opacity of the layer. The portal item from which the layer is loaded. Refresh interval of the layer in minutes. The spatial reference of the layer.
Why does wmslayer not support Styled Layer Descriptor?
The WMSLayer does not support using Styled Layer Descriptor (SLD) documents. A thin gap line is visible where the dateline is located. The images may flash when the display transitions from one world to two, or vice versa. Search for samples that use this class.
Which is the default behavior of a wmslayer?
The default behavior of a WMSLayer is to execute a WMS GetCapabilities request, which requires using a proxy page. See the Using the proxy page help topic for more details. An alternate approach is to pass a resourceInfo object into the constructor which does not require a GetCapabilities request.