Tag Info

Hot answers tagged

4

IQueryFilter is the best option for your problem.You can put your name value in the whereclause of the queryfilter and thereby you can get the desired feature. ESRI.ArcGIS.Geodatabase.IQueryFilter queryFilter = new ESRI.ArcGIS.Geodatabase.QueryFilterClass(); queryFilter.WhereClause = "NAME LIKE 'LIGHT_POLE'; ESRI.ArcGIS.Geodatabase.ICursor cursor = ...


2

Not tested, but something like this should work var oldLayer = ""; // to start, declare an empty variable outside of the function scope function clickFeature(e) { var layer = e.target; layer.setIcon(layer.options.icon = icon2); // only attempt to change oldLayer icon back to original if oldLayer defined if (oldLayer) ...


2

The best option is to use a query to get back the corresponding feature: IQueryFilter queryFilter = new QueryFilterClass(); queryFilter.WhereClause = "NAME = '<featureName>'"; using (ComReleaser comReleaser = new ComReleaser()) { ICursor cursor = table.Search(queryFilter, true); comReleaser.ManageLifetime(cursor); IRow row = null; while ((row ...



Only top voted, non community-wiki answers of a minimum length are eligible