Passing Buffer Results to Update Graphics Layer, Nothing displays
Hi All -
I perform a Buffer task on a single point feature, the results are IEnumarable<Graphic>, which I store in the variable 'enumRing1'.
Next I use UpdateGraphicsLayer; The input FeatureSet can be either a feature set or collection of Graphics i.e. IEnumarable<Graphic>.
So I pass in 'enumRing1', select the default Render, run the workflow and nothing displays.
However when I execute "RunExternalCommand" "AddTemporaryMarkupGeometry" and pass in 'enumRing1.first().geometry'
I see my buffer result.
So it appears I'm using UpdateGraphicsLayer incorrectly. Can anyone shed some light on what I might be doing wrong?
Thanks
Tom.
-
Hi Tom -
What a fantastic question.
It sure does look like there's a problem with UpdateGraphicsLayer not supporting Enumarable<graphics> as advertised, but try casting the collection of graphics into a new featureset. Use Assign to do this;
Create a new variable fsBuffer1 as a featureset
then for the VB expression type in; new featureset(enumRing1)
Use fsBuffer1 as the input for UpdateGraphicsLayer.
Good luck
Tom
0 -
Thanks Tom that worked, you're awesome.
~Tom
0 -
Thanks. Thought I was losing my mind when passing graphics list to graphics layer and it wasn't showing.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare