Select to view content in your preferred language

identifyGraphicsOverlayCompleted is deprecated, what should I use?

288
3
Jump to solution
03-10-2025 05:13 AM
Labels (2)
FatmaAkdemir
Frequent Contributor

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?

0 Kudos
1 Solution

Accepted Solutions
JamesBallard1
Esri Regular Contributor

Hi @FatmaAkdemir. That signal goes along with the older and also deprecated 

identifyGraphicsOverlay method (see here https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-geoview-obsolete.html#identify...)

 

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#identifyGraphicsO... (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-pattern... 

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&ty... 

View solution in original post

3 Replies
JamesBallard1
Esri Regular Contributor

Hi @FatmaAkdemir. That signal goes along with the older and also deprecated 

identifyGraphicsOverlay method (see here https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-geoview-obsolete.html#identify...)

 

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#identifyGraphicsO... (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-pattern... 

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&ty... 

FatmaAkdemir
Frequent Contributor

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?

0 Kudos
bnoble0110
Esri Contributor

 You might benefit from checking out some of these samples:

https://github.com/Esri/arcgis-maps-sdk-samples-qt/tree/f4f5d85c8583a83e2067969dc39e1b255c2e0be9/Cpp...

https://github.com/Esri/arcgis-maps-sdk-samples-qt/tree/f4f5d85c8583a83e2067969dc39e1b255c2e0be9/Cpp...

 

They use things like simulated data sources and location tracking, which may be what you're looking for.