function executeIdentifyTask(evt) { map.graphics.clear(); identifyParams.geometry = evt.mapPoint; identifyParams.mapExtent = map.extent; var deferred = identifyTask.execute(identifyParams); deferred.addCallback(function (response) { return dojo.map(response, function (result) { var feature = result.feature; var contentString = ""; var sp = feature.attributes; contentString += "<b>" + result.layerName + "</b><hr width = '90%'>"; for (var x in sp) { if (x !== "OBJECTID" && x !== "Shape") { contentString += "<i>" + x + "</i>: " + feature.attributes + "<br/>"; } } var infoTemplate = new esri.InfoTemplate(); infoTemplate.setTitle("Results"); infoTemplate.setContent(contentString); feature.setInfoTemplate(infoTemplate); return feature; }); }); map.infoWindow.setFeatures([deferred]); map.infoWindow.show(evt.mapPoint); }
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.