Select to view content in your preferred language

how to zoom to feature by objectID in arcgis silverlight api programmatically?

1901
2
Jump to solution
01-27-2013 02:41 AM
MohamedOthman1
Deactivated User
hi there,


I want to zoom to feature by objectid in arcgis silverlight web application


i want to get feature by object id first then zoom to the geometry of the feature


help me please
0 Kudos
1 Solution

Accepted Solutions
SanajyJadhav
Deactivated User
You can the query the layer using where clause - "OBJECTD = " + OID_Value;setting return geometry to true. IF the query is successful, you would get the geometry of the selected feature in the query execute completed event back. Then, you can use this geometry to zoom to.

HTH.

View solution in original post

0 Kudos
2 Replies
SanajyJadhav
Deactivated User
You can the query the layer using where clause - "OBJECTD = " + OID_Value;setting return geometry to true. IF the query is successful, you would get the geometry of the selected feature in the query execute completed event back. Then, you can use this geometry to zoom to.

HTH.
0 Kudos
MohamedOthman1
Deactivated User
thank you very much i found a solution yesterday night it's the same idea


you are so kind


eventually I found a solution


using Query Task and pass in the where clause the filter like

query.where="objectid=17";


but when i need to save edit delete in sde use WCF service

that's set
0 Kudos