Dear Manishkumar,Thanks for your answer. Quite useful, but although my problem is the function part. In my case, I just use the popup functionality and not an identify method. This is a example ( http://jsfiddle.net/9kt2j/ ), which shows the problem really well. If you want to add new feature with enabled LandZones Layer, the feature won't add to the map, but you get an information popup (although a feature should be added).If that's not asking too much, you could probably edit the jsfiddle? Would be awesome to be able to toggle the popup functionality...Cheerio,DominikThe code, which enables the popup is:var popup = Popup({
titleInBody: true,
isEditable: true,
pagingControls: true
},domConstruct.create("div"));
var template = new PopupTemplate({
title: "Landzones",
description: "<b>Zoning is the following: {ZONING_NAME} with the code {ZONING_CODE}",
fieldInfos: [{ //define field infos so we can specify an alias
fieldName: "ZONING_NAME",
label: "ZONING NAME"
},{
fieldName: "ZONING_CODE",
label: "ZONING CODE"
},{
fieldName: "ZONING_TYPE",
label: "ZONING TYPE"
}]
});
Landzones = new esri.layers.FeatureLayer("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_LandRecords_Louisville/MapServer/2",{
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
outFields: ["*"],
infoTemplate:template
});