assign values to evt parameters

686
2
Jump to solution
03-24-2013 06:27 PM
deleted-user-ATjHIWsdQYmT
Occasional Contributor III
I am trying to programatically execute an "identify" by passing x/y coords.  I have been able to pass the mapPoint but cannot get the syntax right to include the screenPoint.  Here is the code I'm using:

doIdentify({

"mapPoint": thisPoint
});

Can anyone point me in the right direction on how to add the screenPoint as well?

Thanks.
0 Kudos
1 Solution

Accepted Solutions
deleted-user-ATjHIWsdQYmT
Occasional Contributor III
Thanks John.  I ended up figuring it out.  My issues I was encountering were more syntax related.  That was my biggest problem.

For those looking to pass values to an identify function via code as opposed to a map click, here's my working code:
dojo.forEach(lblPoint, function(labelPoint){
                      pt = labelPoint;
                      pickIdentify({
                          "mapPoint": pt,
                          "screenPoint": map.toScreen(pt)
                      });
                  });

View solution in original post

0 Kudos
2 Replies
JohnGravois
Frequent Contributor
have you already seen map.toScreen()?
0 Kudos
deleted-user-ATjHIWsdQYmT
Occasional Contributor III
Thanks John.  I ended up figuring it out.  My issues I was encountering were more syntax related.  That was my biggest problem.

For those looking to pass values to an identify function via code as opposed to a map click, here's my working code:
dojo.forEach(lblPoint, function(labelPoint){
                      pt = labelPoint;
                      pickIdentify({
                          "mapPoint": pt,
                          "screenPoint": map.toScreen(pt)
                      });
                  });
0 Kudos