I’ve run into an issue trying to use QueryTools on a shapefile layer. It works fine on my machine (Win 7 64-bit), but I’ve deployed to another similar machine (also Win7 64-bit) and the QueryTools property is null in that scenario. I’ve made sure that I’m calling Open() on the layer before referencing QueryTools. I’ve seen in other posts that as long as an app is compiled to 32-bit that it should work fine, but this app is 32-bit and no luck. Any ideas? Thanks in advance.
Chad
Dim
mouseLocation
As
System.Windows.Point = e.GetPosition(WpfMap1)
Dim
queryPoint
As
PointShape = WpfMap1.ToWorldCoordinate(mouseLocation)
Dim
cluLayer
As
ShapeFileFeatureLayer =
CType
(
CType
(WpfMap1.Overlays(
“Features”
), LayerOverlay).Layers(0), ShapeFileFeatureLayer)
Dim
features
As
Collection(Of Feature)
cluLayer.Open()
’ QueryTools is null here
features = cluLayer.QueryTools.GetFeaturesContaining(queryPoint, ReturningColumnsType.NoColumns)