Colour Output Geometry vs Markup
One works, but the other doesn't
1. Colour Output Geometry
- "CreateHighlightLayer" : "highlightlayer"
- "SetActiveHighlightLayer" : ""highlightlayer"
- "SetHighlightFillColor" : "#00FFFFFF"
- "SetHighlightBorderColor" : "#FFFF0000"
- "HighlightEsriFeatureSet" : FeatureSet
The resultant buffer displays according to my clients specifications. But I cannot remove the featureset if the program is run for a second time
2. Colour Output Markup
- "CreateHighlightLayer" : "highlightlayer"
- "SetActiveHighlightLayer" : ""highlightlayer"
- "SetHighlightFillColor" : "#00FFFFFF"
- "SetHighlightBorderColor" : "#FFFF0000"
- "AddTemporaryMarkupGeometry" : polygon
The colour and/or transparent fill do NOT effect the output buffer. It remains with a dark blue outline and light blue interior. But I can remove the graphic
with "ClearMarkupQuiet" if the workflow is run for a second time.
Why don't the colours that are set affect the output markup?
What it the correct way of clearing a featureset prior to the workflow being run for the second time?
Walter
-
I'm having the same issue with Geocortex 4.5.1 and the HTML5 2.6 viewer. Were you able to find a solution? 0 -
Hi Walter and Vincent,
If you are using the "CreateHighlightLayer" commands in a workflow, then you have to use the "RemoveHighlightLayer" or "ClearHighlights" to remove the graphics added by "HighlightEsriFeatureSet".
If you are using "AddTemporaryMarkupGeometry" or "AddMarkup", then you will use the "ClearTemporaryMarkup" or "ClearMarkupQuiet" respectively to remove those items. These commands work in sets and they are not interchangeable. In addition, markup colours cannot be adjusted or changed. The "SetHighlightFillColor" and "SetHighlightBorderColor" commands only apply to the "HighlighEsriFeatureSet" command.
If you want to add multiple highlight colours/markups to the map, then I would suggest adding the buffer polygon to its own feature set and then use the "HighlightEsriFeatureSet" command. You can create multiple highlight layers with different colours to emphasize the features on your map. The other option is using the "UpdateGraphicsLayer" which will also let you apply different highlight colours to the features.
I hope this helps.
Regards,
Carmen0 -
Hello Carmen,
I used multiple highlight layers for different colors and they did not work. the 2nd one takes 1st color. I saw map flashed with the correct colors for both features but ended up to the first color being displayed at end. Any suggestion?
thanks0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare