I want to identify the clicked Graphic object on a MapGraphicsView. However the old method is deprecated, could you give me an example of the new method?
Hi @FatmaAkdemir. That signal goes along with the older and also deprecated
The replacement for all our deprecated TaskWatcher async methods are the newer QFuture versions, which do not require any signal to connect to.
https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-geoview.html#identifyGraphicsOverlayAsync (or its overload).
Here is a blog to covers porting from the older async patter to the newer one.
https://community.esri.com/t5/arcgis-maps-sdks-native-blog/migrating-to-qfuture-async-coding-patterns-in-the/ba-p/1413627
There are some examples in our samples repo that should help to get you started as well: https://github.com/search?q=repo%3AEsri%2Farcgis-maps-sdk-samples-qt+identifyGraphicsOverlayAsync&type=code
Thank you very much ! @JamesBallard1 Can I ask you one more question? We need something like a track trajectory, or track history, is there a feature or a class providing this?
You might benefit from checking out some of these samples:
https://github.com/Esri/arcgis-maps-sdk-samples-qt/tree/f4f5d85c8583a83e2067969dc39e1b255c2e0be9/CppSamples/Maps/ShowLocationHistory
https://github.com/Esri/arcgis-maps-sdk-samples-qt/tree/f4f5d85c8583a83e2067969dc39e1b255c2e0be9/CppSamples/Routing/NavigateRoute
They use things like simulated data sources and location tracking, which may be what you're looking for.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.