I am new to Map Suite. I was reviewing the sample ‘FindTheFeatureAUserClickedOn’. I created a new solution to test the example. In my solution the QueryTools method of the feature layer is null. It exists and runs fine in the HowDoISamples application. Could someone please point out why the method is null in my stand alone solution?
private void winformsMap1_MapClick(object sender, MapClickWinformsMapEventArgs e)
{
FeatureLayer worldLayer = winformsMap1.FindFeatureLayer(“WorldLayer”);
worldLayer.Open();
Collection<
Feature
> selectedFeatures = worldLayer.QueryTools.GetFeaturesContaining(e.WorldLocation, new string[1] { “CNTRY_NAME” });
worldLayer.Close();