Hello ThinkGeo People,
I am trying to query a InMemoryFeatureLayer that the user just created using a search. The code is as follows:
mapPageOverlay = (LayerOverlay)Map1.CustomOverlays["StaticOverlay"];
var spatialQueryResultLayer = (InMemoryFeatureLayer)mapPageOverlay.Layers["SpatialQueryResultLayerLine"];
features = spatialQueryResultLayer.InternalFeatures;
spatialQueryResultLayer.Open();
features = spatialQueryResultLayer.QueryTools.GetFeaturesNearestTo(e.Position, Map1.MapUnit, 1, new[] { "OPER", "STATUS", "SUBST_A" });
spatialQueryResultLayer.Close();
This is returning 0 results and it appears that there is no items in the spatialQueryResultLayers Columns but has values in InternalFeatures. How would I make this Query Work?
Thanks as always!
Kevin