Arcgis属性查询的点高亮显示

function showPointResult() {
    require(["esri/symbols/PictureMarkerSymbol"
    ], function( PictureMarkerSymbol
    ){

        if (serverData.pointDataPage.length >= 1) {
        
            //得到graphic
     
                for (var i = 0; i < queryResult.features.length; i++) {
                //得到graphic
                 var graphic = queryResult.features[i];
                 graphic.symbol = new PictureMarkerSymbol({
                    url:'img/num1.png',
                    width:'30',
                    height:'30'
            
                });
                //添加到地图从而实现高亮效果
                 map.graphics.add(graphic);
                //移除高亮效果
                // map.graphics.remove(graphic);
            }
        }})

}

 

你可能感兴趣的:(Arcgis)