point disappear when scroll

Discussion created by zularcgis on Nov 10, 2013
Latest reply on Nov 12, 2013 by Suba_Krishnan-esristaff
var landusePointLayer = new esri.layers.FeatureLayer("http://localhost:6080/arcgis/rest/services/GeoIskandar_Project6/FeatureServer/0", {
         mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
         outFields: ["*"]

landusePointLayer.setDefinitionExpression("PROJECT_ID='<?php echo $project_id_view; ?>'");

I added a setdefinitionexpression to show selected feature.However when click a point on the map and scroll it, the point will disappear. Does anybody know how to solve it? Thanks