Select to view content in your preferred language

Highlight around the hovered geometry only out of selected features in Map Tool .net sdk

747
5
06-14-2023 06:07 AM
GISNewbieDev
Emerging Contributor

Hi,

How can we create a dotted highlight/overlay around the hovered geometry or capture that geometry on hover only out of selected features in Map Tool. Basically just like in the explode tool. So this highlight should only be on that hovered geometry which will be in the selected features.

@Wolf @GKmieliauskas @UmaHarano  

Tags (1)
0 Kudos
5 Replies
GISNewbieDev
Emerging Contributor

any help? @Wolf  @GKmieliauskas 

0 Kudos
GKmieliauskas
Esri Regular Contributor

You can use AddOverlay/UpdateOverlay from MapTool. OnToolMouseMove track mouse position, search for selected features and use AddOverlay/UpdateOverlay depending on search results.

There are many samples using AddOverlay from ArcGIS Pro Community samples. One of them is :

https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Exploration/OverlayExamples . Sample contains AddOverlayTrackMouseTool tool, which could be base for your tool

0 Kudos
GISNewbieDev
Emerging Contributor

@GKmieliauskas I had gone through the overlay examples earlier but for me I have to highlight the polygon and on move only gives the client point. How to highlight that particular polygon in which mouse is hovered to highlight a dotted line across that polygon? And any feature that is selected contains of multiple parts whichever part is hovered that should have overlay so that after clicking on that part it should explode from that feature.

0 Kudos
GISNewbieDev
Emerging Contributor
0 Kudos
GKmieliauskas
Esri Regular Contributor

There is no ready to use code for your case. You need to develop it. Show your code, say in which step you  need help and then we could help you.

0 Kudos