AddCustomMarkup
What are the parameters for using the addcustomMarkup tool in a workflow, it sounds like this would be a tool I could use to create markers of different colors and styles in a workflow.
"Adds a custom markup to the markup
layer. This command allows you to
supply both the geometry and
symbology wrapped in a
MarkupParameters object"
So whats the syntax to call an external command ("AddCustomMarkup") in a workflow. (I already use "AddMarkup)
Jeff
-
Have you resolved this issue?
0 -
I see the AddCustomMarkup external command, but I really need a sample of the syntax to actually use it. Can you give me a sample of using the command and the syntax needed.
Also, We want to have our own markup symbols. is there a way to have our own library of symbols??
J
0 -
Hi Jeff,
Unfortunatley AddCustomMarkup cannot be called from a Workflow, as the MarkupParameters object is not available from Workflow. You can use this command in a custom module for the viewer.
-Victoria
0 -
Hi Victoria
do you have any idea if there is an intent to have an Activity to create a MarkupParameters object?
Is there a definition or example of what one of those objects would look like? I had a look through here: (https://resources.geocortex.com/essentials/apis/silverlight/) https://resources.geocortex.com/essentials/apis/silverlight/ but failed to find anything that was relevant.
There are certainly times when I would like to add markup via a workflow and in particular text markup but AddTextMarkup only triggers an addition of text typed in by a user at a given geometry.
Thanks
Ralph
0 -
Any help on this would be much appreciated - this is a topic I've been struggling with for a while. I have a workflow that adds a point and a polygon using the AddMarkup command. The problem is there's no way to control the properties of the graphics, so the results always look like the attached image. I'd like to make the polygon have no fill and change the border color because the red filll obsucres a lot of information in my application. I've seen others suggest making a custom GVS module, but is there any possible solution using Workflow? (I'd like to keep it HTML compatible, so I'd like to stay away from the GVS module)
/customer/servlet/servlet.FileDownload?file=00P6000000e88NmEAI
0 -
You could create a graphic with whatever symbol you wanted, then add it to a featureset and use a selectfeature activity. I am still fairly new to this, but if your goal is to simply display a custom point, you should be able to do it like that.
0 -
Hi Kevin
thanks for the thought. Just seems a bit extreme and a bit of an overhead needing a Feature Service, versioning etc to deal with placing a graphic on the map.
Regards
Ralph
0 -
After re-reading my post I think I should have provided a better example. In my customer's site there is a requirement to produce a map with two buffers around a user-identified point. The buffers are then used to select roads within 1000' and railroads within 3000', and include the attributes of those selected features in tabular report with a map. Using the code gallery samples I've been able to get to the point where a (http://sdrv.ms/VV4bsg) report like this pdf is generated. How it's set up now works, except that two overlapping buffer polygons produces a darker red fill on the inside buffer, and base map features can't be easily distinguished. I’ve tested a couple of code gallery samples:
- https://support.geocortex.com/using-a-workflow-to-generate-a-multi-layer-report-with-map-1
- https://support.geocortex.com/parcel-selection-buffering-and-report-workflow (one of the comments on this one regards changing the buffer symbology)
But in each of those workflows the default marker symbols are used. What I’d like is a way to modify the markup being added to the map.
I had tried setting all this up using a GP service instead using the GP Task code gallery sample – which did work, but it was quite a bit slower than using Workflow activities (granted, this was before we upgraded to 10.1 so it may be faster now). The FeatureCommands of the viewer allow control over highlight borders and fills, but it looks like these all require features coming from a map service or GP task rather than client geometries.
Kevin’s suggestion sounds good conceptually. Is there a way to convert Graphic objects out of a BufferTask activity into FeatureSet objects?
Or, is there an external GVS command to change the viewer's border and fill colors? I noticed that if you activate a Drawing tool in the viewer and change the color properties there, then any markup added via Workflows uses these color settings.
Nate
0 -
From within workflow you can create a highlight layer, set its fill and border color, and then add graphics to it. You'll need to use Viewer commands to achieve this, and it is a few more steps than adding markup, but it should work just fine.
Here's a workflow snippet that should help illustrate this. It's a good idea to re-run the 'SetActiveHighlightLayer' command every time you want to add something. Making a selection in the viewer will actually reset the highlight layer to the default, so doing this will prevent any surprises.
<Activity mc:Ignorable="sap sads" x:Class="{x:Null}" sap:VirtualizedContainerService.HintSize="381,794" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:eac="clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client" xmlns:eacg="clr-namespace:ESRI.ArcGIS.Client.Geometry;assembly=ESRI.ArcGIS.Client" xmlns:eact="clr-namespace:ESRI.ArcGIS.Client.Tasks;assembly=ESRI.ArcGIS.Client" xmlns:esri="http://schemas.esri.com/arcgis/client/2009" xmlns:gce="clr-namespace:Geocortex.Core.Extensions;assembly=Geocortex.Core" xmlns:gfc="clr-namespace:Geocortex.Forms.Client;assembly=Geocortex.EssentialsWpfApi" xmlns:gfci="clr-namespace:Geocortex.Forms.Client.Items;assembly=Geocortex.EssentialsWpfApi" xmlns:gr="clr-namespace:Geocortex.Reporting;assembly=Geocortex.Reporting" xmlns:gwa="clr-namespace:Geocortex.Workflow.Activities;assembly=Geocortex.Workflow" xmlns:gwa1="clr-namespace:Geocortex.Workflow.Activities;assembly=Geocortex.Workflow.Activities" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:s="clr-namespace:System;assembly=System.Core" xmlns:s1="clr-namespace:System;assembly=System" xmlns:s2="clr-namespace:System;assembly=mscorlib" xmlns:sa="clr-namespace:System.Activities;assembly=System.Activities" xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib" xmlns:sl="clr-namespace:System.Linq;assembly=System.Core" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Sequence sap:VirtualizedContainerService.HintSize="341,714" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces"> <Sequence.Variables> <Variable x:TypeArguments="esri:FeatureSet" Name="Selection" /> </Sequence.Variables> <sap:WorkflowViewStateService.ViewState> <scg:Dictionary x:TypeArguments="x:String, x:Object"> <x:Boolean x:Key="IsExpanded">True</x:Boolean> </scg:Dictionary> </sap:WorkflowViewStateService.ViewState> <gwa1:RunExternalCommand CommandName="CreateHighlightLayer" CommandParameter="["ParcelHighlights"]" sap:VirtualizedContainerService.HintSize="319,86" /> <gwa1:RunExternalCommand CommandName="SetHighlightBorderColor" CommandParameter="["#FF062A9E"]" sap:VirtualizedContainerService.HintSize="319,86" /> <gwa1:RunExternalCommand CommandName="SetHighlightFillColor" CommandParameter="["#881BC6E0"]" sap:VirtualizedContainerService.HintSize="319,86" /> <gwa1:RunExternalCommand CommandName="SetActiveHighlightLayer" CommandParameter="["ParcelHighlights"]" sap:VirtualizedContainerService.HintSize="319,86" /> <gwa1:RunExternalCommand CommandName="HighlightEsriFeatureSet" CommandParameter="[Selection]" sap:VirtualizedContainerService.HintSize="319,86"> <sap:WorkflowViewStateService.ViewState> <scg:Dictionary x:TypeArguments="x:String, x:Object"> <x:Boolean x:Key="IsExpanded">True</x:Boolean> <x:Boolean x:Key="IsPinned">False</x:Boolean> </scg:Dictionary> </sap:WorkflowViewStateService.ViewState> </gwa1:RunExternalCommand> </Sequence> </Activity>0 -
Also, if you have a single Graphic you can make a FeatureSet from it like this:
myFeatureSet = new FeatureSet( new List ( Of Graphic ) From {myGraphic} )
The two side of the "equals" go in the two boxes of an 'Assign' task when using Workflow. You could also type the right side of this directly in the 'CommandParameter' box of 'HighlightEsriFeatureSet'.
0 -
Hi All,
Is there anybody know how I can change the Display Name of Layer in workflow?
Thanks In Advance,
Hamid
0 -
I have downloaded and used the sample highlight layer method and it works great. I was wondering if you could change the default simplemarker symbol in the same way:
here's the highligh layer code:
<gwa1:RunExternalCommand CommandName="CreateHighlightLayer" CommandParameter="["ParcelHighlights"]" sap:VirtualizedContainerService.HintSize="319,86" />
<gwa1:RunExternalCommand CommandName="SetHighlightBorderColor" CommandParameter="["#FF062A9E"]" sap:VirtualizedContainerService.HintSize="319,86" />
<gwa1:RunExternalCommand CommandName="SetHighlightFillColor" CommandParameter="["#881BC6E0"]" sap:VirtualizedContainerService.HintSize="319,86" />
<gwa1:RunExternalCommand CommandName="SetActiveHighlightLayer" CommandParameter="["ParcelHighlights"]" sap:VirtualizedContainerService.HintSize="319,86" />
<gwa1:RunExternalCommand CommandName="HighlightEsriFeatureSet" CommandParameter="[Selection]" sap:VirtualizedContainerService.HintSize="319,86">so i was wondering if there was a set highlight marker symbol or set highlight marker style for size and marker type?
at least now we can change the colors of markers.
Jeff
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
12 Kommentare