assign identify result to mapInfoWindow

480
1
Jump to solution
08-06-2012 12:39 PM
ConnieLeung
New Contributor II
Hi,

I am trying to get the features from the identifyResult. The goal is the assign the result features to the mapInfoWindow. Below is my code:


identifyTask.execute(identifyParams,dojo.hitch(this,function(response){
    console.log(response);
    this.map.infoWindow.setFeatures(response);
        this.map.infoWindow.show(evt.mapPoint);
      }));


However, I've got an error from the API -

TypeError
arguments: Array[2]
get message: function () { [native code] }
get stack: function () { [native code] }
set message: function () { [native code] }
set stack: function () { [native code] }
type: "undefined_method"
__proto__: Error

Any ideas what I've done wrong?

Thanks,
Connie
0 Kudos
1 Solution

Accepted Solutions
ConnieLeung
New Contributor II
0 Kudos
1 Reply
ConnieLeung
New Contributor II
0 Kudos