Hi,
We have now included a sample to demonstrate how to perform Hittesting on a MessageLayer - it is currently in the v.next branch until the product is released: arcgis-runtime-samples-dotnet/MessageProcessingSample.xaml.cs at v.next · Esri/arcgis-runtime-samples-dotnet · GitHub
Cheers
Hi Mike,
Wondering if you could help me with this error ..
Unable to cast object of type 'CoreMessageGraphicsLayerWrapper' to type 'RuntimeCoreNet.CoreGraphicsLayerWrapper'.
while trying to a called MessageGraphicLayer.HitTestAsync(..)
Graphic graphics = await msggraphiclayer.HitTestAsync(EsriMapView, point); or
or IEnumerable<Graphic> graphics = await graphiclayer.HitTestAsync(EsriMapView, point, 1);
I am using the Esri.ArcGISRuntime.AdvancedSymbology and the MessageLayer to process 2525B messages and I would like to be able to select the graphics (eg using hit test) and obtain the graphics and do something with it. But time I try to called the HitTestAsync, I get the error above and I go no idea what it saying. Can you help?
foreach (var layer in MsgLayer.ChildLayers)
{
if (typeof(MessageGraphicsLayer) == layer.GetType())
MessageGraphicsLayer msggraphiclayer = (MessageGraphicsLayer)layer;
try
Graphic graphics = await msggraphiclayer.HitTestAsync(DrawingLayers.EsriMapView, point);
}
catch
regards,
Vinh Le (Australia)
ESRI .NET Runtime SDK 10.2.3 BETA
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.