Robert,
Can you explain me this example?
At this lines:
// InfoWindow expects an array of features from each deferred
// object that you pass. If the response from the task execution
// above is not an array of features, then you need to add a callback
// like the one above to post-process the response and return an
// array of features.
map.infoWindow.setFeatures([deferred]);
yes, it has comments but I don't understand.
Instead,
var deferred = identifyTask
.execute(identifyParams)
.addCallback(function (response) {..} ,
I'm making,
identifyTask.execute(identifyParams, function (response) {..} .
Instead .setFeatures([deferred]), I'm sending .setFeatures(feature), where feature = response[0].feature, and is saving the infoTemplate.
When I click the map, the infoWindow content is 'No information', Why?
Thanks a lot.