You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.While removing layer from map using this code inside LayerControl.js
this.map.removeLayer(control.layer) required layer is removed from the map viewer, but still this.layerInfos having information of removed layers.
OR I am using (layerControl/removeLayerControls) in this case layer is not removed from
Map and TOC
Hi @tmcgee ,
1.While removing layer from map using this code inside LayerControl.js
this.map.removeLayer(control.layer) required layer is removed from the map viewer, but still this.layerInfos having information of removed layers.
OR I am using (layerControl/removeLayerControls) in this case layer is not removed from
Map and TOC
_Removeservice: function (control) {
var layerControlInfo = {
controlOptions: {
expanded: false,
noLegend: true,
metadataUrl: false,
swipe: false
},
layer: control.layer,
title: control.layer.id,
type: 'dynamic'
};
}
2.While adding dynamic service programmatically in map viewer it is adding but in TOC not getting updated.
var imageParameters = new ImageParameters();
imageParameters.layerIds = visibleLayers;
imageParameters.layerOption = ImageParameters.LAYER_OPTION_SHOW;
imageParameters.transparent = true;
var dynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer(url,
{ "imageParameters": imageParameters });
this.map.addlayer(dynamicMapServiceLayer);
Please let me know how to update/refresh layercontrol after adding or removing service/layer from the map.
Any lead on this will be of great help.
Thanks in Advance.
Samim
The text was updated successfully, but these errors were encountered: