Hi,
I am changing the map extent and I want at a particular map scale the layer visibility should be turned off.
if (level > 0) {
topic.subscribe("LayerInfos/ExtentChange", lang.hitch(this, function (cur, evt, vs) {
var scale = evt.lod.scale;
if (layerInfo.initVisibaleAtScale == true) {
console.log(layerInfo.title);
As of now I am just able to check if its visible at a scale. Instead I want to set the visibility off.(3.x)
Thanks
Kumar
Solved! Go to Solution.
I was able to resolve it by this.map.selectablelayer[2].visible = false;
Thanks for all the support.
Kumar,
It would look something like this:
if(scale >= x) {
map.getLayer(layerInfo.id).hide();
}
Hi Robert,
But I dont have any hide() option available.
I was able to resolve it by this.map.selectablelayer[2].visible = false;
Thanks for all the support.