Hi,
I want make a blinking polygon feature, the polygon feature will change colors with in regular intervals. I did this by using ‘Timer’ with ‘InMemoryFeatureLayer’. But I have to ‘Refresh’ map each time interval. It’s getting performance issue using ‘Windows Xp’.
So I want to make same functionality with out using ‘Timer’. I am trying by the ‘InMemoryMarkerOverlay’.
Can any one suggest me to do it.
Thanks,
Riyaz
Blinking polygon feature like changing colors within regular intervals
Hi Riyaz,
Do you want to changing the polygon color or markers’ ? You mean because the InMemoryFeatureLayer is run into performance issue so you want to use the InMemoryMarkerOverly to create blinking markers? If so, here attached is the sample about how to display the marker by animation.
If misunderstood something here please let me know.
Thanks,
Peter
001_WinMapSamples.zip (1.01 MB)
Hi Peter,
I checked your attached sample application.I wanted same marker style effect to Polygon shape not to point shape.
Fix the same blinking effect to polygon shape. Help me to fix it.
Thanks,
Riyaz
Hi Riyaz,
I’d prefer you to create a customized area style to make a blinking polygon feature.
Here attached is the new sample shows how to draw the area with blinking. As the upload file size limited, the sample doesn’t contain the test data, you need to prepare the data before run it.
Thanks,
Peter
002_001_WinMapSamples.zip (1.01 MB)
Hi Peter,
I checked your sample ‘Blinking Polygon’. It’s working, But even though map is refreshing basing on time interval.
By using this code,
wfMap.Overlays[“BlinkingOverlay”].AutoRefreshInterval = TimeSpan.FromSeconds(5);
Same functionality I did by ‘Timer’ with map refresh.But I want to blink polygon with out refreshing map.
Is it possible in Mapsuite Desktop Edition? If it possible please help me to fix this issue.
Thanks,
Riyaz
Hi Riyaz,
I don’t find out another way to blink polygon without refreshing map.
The following code just refreshes the BlinkingOverlay not refreshing all the overlay in the map.
wfMap.Overlays[“BlinkingOverlay”].AutoRefreshInterval = TimeSpan.FromSeconds(5);
Regards,
Peter
Hi Peter,
Thanks for your reply. It’s helpful to me.
Regards,
Riyaz
Hi Riyaz,
Very glad to hear that it’s helpful to you.
Regards,
Peter