Symbolize Buffer in Workflow
Hello all,
I have a workflow that includes a buffer process with adding the markups via the Run External Command "AddMarkup". It returns the buffer with a default drawing color of red outline and light red fill. I was wondering if anyone knows a way to customize that before or during the display of the markup?
Thanks,
Eric
-
I posted the same question in the GVS forum but got no responses.
https://support.geocortex.com/Forums/Thread.aspx?thread=46454&mid=2&pageid=0&ItemID=7
It would be very handy to be able to configure markup before adding it to the display. Does anyone have any ideas? Latitude, could you please comment if this is currently possible? Otherwise we can post it in the enhancements section.
Nate
0 -
Use Geocortex.EssentialsSilverlightViewer.Infrastructure.Models.MarkupParameters and set the Symbol property
0 -
Nico,
That sounds great using AddCustomMarkup or AddTemporaryMarkup in my workflow, but apparently you cannot import that parameter into workflow and it's not available for use. Can you please explain your process to make it work?
Thanks,
Eric
0 -
I'm struggline with this same issue.
0 -
Hello,
Unfortunately you cannot currently set the default markup color for the Silverlight Viewer, and it is still not possible to access the Markup Parameters for the AddCustomMarkup command in workflow.
We do have feature requests and improvements filed for these issues, and I have added all of you as stakeholders.
-Victoria
0 -
Thanks, Victoria. I've managed to write a custom module that does this, but having this functionality available thru WorkFlow Designer would be my strong preference.
0 -
Jeff, I would be interested in how you put together your custom module as I am struggling with the same thing.
Marc
0 -
Hi, Marc,
I started with the QuickStart InvokeWorkflow module, but replaced the code in the activity handler with the code pasted below (the logic is very different). You'll need a Dynamic External activity in your workflow to hook this up - mine passes a graphic collection ("schools") as an output argument. Note: this was a proof-of-concept, not a production app, but it seemed pretty solid.
-j
------------------------------------
object schools = context.GetValue("schools");
FeatureSet featureSet = schools as FeatureSet;BitmapImage image = new BitmapImage(
new Uri("/Resources/Images/school.png", UriKind.Relative));
PictureMarkerSymbol pms = new PictureMarkerSymbol();
pms.Source = image;MarkupParameters mp = new MarkupParameters();
foreach (Graphic graphic in featureSet)
{
mp.Geometry = graphic.Geometry;
mp.Symbol = pms;MarkupCommands.AddCustomMarkup.Execute(mp);
}object taxlot = context.GetValue("taxlot");
MapPoint taxlotCentroid = taxlot as MapPoint;BitmapImage taxlotImage = new BitmapImage(
new Uri("/Resources/Images/House.png", UriKind.Relative));PictureMarkerSymbol pms2 = new PictureMarkerSymbol();
pms2.Source = taxlotImage;MarkupParameters mp2 = new MarkupParameters();
mp2.Geometry = taxlotCentroid;
mp2.Symbol = pms2;MarkupCommands.AddCustomMarkup.Execute(mp2);
// Complete the activity using the activity context
context.CompleteActivity();0 -
Hi Victoria
can you add me to this as a stakeholder as well.
If we can't modify the color during a workflow, which would be desirable as an option being able to modify what the start point for markup color values (fills and lines inc boundary lines) on viewer startup would be helpful.
Thanks
Ralph
0 -
+ 1 here also - and agree with Ralph's sentiments...
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
10 Kommentare