Select to view content in your preferred language

selectQuery.Geometry?

677
2
06-06-2012 11:34 AM
akpagaakpaga
Deactivated User
In the sample beolw

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ed_attribute_i...


what does this line signify..selectQuery.geometry = evt.mapPoint;


Somehow I am not able to return  evt.mappoint  objetct that it needs to return when I add an alert(map.evt)..Can someone guide me on this

Thank you in advance
0 Kudos
2 Replies
JeffPace
MVP Alum
In the sample beolw

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ed_attribute_i...


what does this line signify..selectQuery.geometry = evt.mapPoint;


Somehow I am not able to return  evt.mappoint  objetct that it needs to return when I add an alert(map.evt)..Can someone guide me on this

Thank you in advance


its in the onclick event, so it is setting the selection location (the query's geometry, i.e. where to search) to the coordinates of the evt
Since the onclick is in screen geometry (pixel height/width) the event (evt or click) 's mapPoint property is "where the user clicked the map in map units).
0 Kudos
akpagaakpaga
Deactivated User
Thank you jeff.
0 Kudos