Flash Geometry

787
7
Jump to solution
11-29-2019 02:34 PM
behrozbehnam
New Contributor II

How to flash Geometry such as MapPoint, Multipoint, polyline, etc.  in ArcGIS Pro SDK .NET ?

I don't mean flash features or selected features. 

For example Flash the below MapPoint which is not belong to any featureclass.

MapPoint  Mp=New MapPointBuilder.CreateMapPoint(1,2,3,4);

Thanks

1 Solution

Accepted Solutions
UmaHarano
Esri Regular Contributor

Hi Behroz,

You are correct. That is exactly what I meant.

Thanks!

Uma

View solution in original post

0 Kudos
7 Replies
UmaHarano
Esri Regular Contributor

You can pass in a collection of OIDs to the FlashFeature method.  Here is the method in the API Ref guide: 

FlashFeature

0 Kudos
behrozbehnam
New Contributor II

Hello

What I meant was how I can flash a geometry on the display

Let me simplify my question.

Suppose we create a simple MapPoint, see below code

MapPoint  Mp=New MapPointBuilder.CreateMapPoint(1,2,3,4);

How can I flash this point. it is not a feature and it is not belong to any featureclass. 

Thanks

On Tuesday, December 3, 2019, 04:50:05 p.m. CST,

0 Kudos
UmaHarano
Esri Regular Contributor

Hi,

There is no built in functionality to flash graphic overlays.  But you could write your own to simulate flashing - by adding/removing the graphic on a timer for example.

Thanks

Uma

0 Kudos
behrozbehnam
New Contributor II

Hi

What I understood from your response is that to create an overlay graphic at the location of the Geometry(i.e. MapPoint) and after displaying that removing the graphic from MapView, right?

In ArcObjects there is a snippet that can Flash Geometry on the display.

Thanks

0 Kudos
UmaHarano
Esri Regular Contributor

Hi Behroz,

You are correct. That is exactly what I meant.

Thanks!

Uma

0 Kudos
ModyBuchbinder
Esri Regular Contributor

Hi Uma

Is their any easy way to plash graphics in 2.6

I tried to play with add and remove element, change symbol and Sleep in between.

It looks really bad.

Thanks

Mody

0 Kudos
Wolf
by Esri Regular Contributor
Esri Regular Contributor

Remove / Add overlay didn't work for me either, it seems to be too asynchronous (random) when the map is actually refreshed.  The best way I found to do this (even so I didn't have to flash my geometry, instead I just moved it) was to use UpdateOverlay with a symbol color that is opposite on the color wheel.

0 Kudos