从要素图层查询值为“x”的要素

时间:2018-03-04 16:49:54

标签: arcgis-js-api

除了包含特定“fieldY = valueX”的功能外,我无法找到返回所有功能的方法!任何帮助将不胜感激!

1 个答案:

答案 0 :(得分:0)

To return all features except ones having a particular value, use something like fieldY <> valueX as in:

featureLayer.definitionExpression= "GRADE <> 'B'";

https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#definitionExpression