Update layer properties
[
returns an array of updatedLayer
,index
] = updateLayers(server
,layer
)WMSLayer
objects and updates the layer
properties with values from the web map server, server
. The
WMSLayer
array layer
must contain only one
unique ServerURL
. The updateLayers
function
removes layers no longer available on the server. The logical array
index
contains true
for each available
layer.
updateLayers
accesses the Internet to update the properties.
Occasionally, a WMS server is unavailable, or several minutes elapse before the
properties are updated.