AnsweredAssumed Answered

Feature Label MinScale Issue

Question asked by lloydbronn on Apr 24, 2017
Latest reply on Apr 25, 2017 by lloydbronn

I'm trying to have my feature layer labels show up at a certain zoom level. I can set maxScale and get results, but minScale doesn't work. 

 

var labelColor = new Color("#00F");
          var font = new Font();
          font.setFamily("arial");
          font.setSize("10pt");
          
          var textSymbol = new TextSymbol();
        textSymbol.setFont(font);
          
          var basin = "{Name}";
   
        var json = {
          "labelExpressionInfo": {"value": basin + " Basin"},
            "minScale":3
        };

       
        var labelClass = new LabelClass(json);
        labelClass.symbol = textSymbol;
        waterbasins.setLabelingInfo([ labelClass ]);

Outcomes