Add Text to mark up symbol
I've created a Zoom to Address workflow. The workflow puts a red dot, using the AddMarkup external command, on the address point. I want to include text that gives the the address. I tried using the 'AddTextMarkup' tool but it doesn't seem as though it is made for that purpose. I looked through the list of external commands and didn't see anything that looks like it would do the job. Does anyone have a suggestion?
-
Hi Zarani,
I have a similar question like yours. I thought AddCallOut command could be the way but it requires Geocortex.EssentialsSilverlightsViewer.Infrasturcture.Models.CalloutParameters as the input argument. I searched on web but couldn't find anything about this CalloutParameters. Could Geocortex staff help?
many thanks
0 -
I'd be interested to know if this is possible too.
0 -
I have seen this on the BingReverseGeocodingModule on the Quickstart:
var callout = new CalloutParameters()
{
AnchorPoint = multiPoint.Points[i],
LayerName = string.Format("GeocodedLayer{0}", new Random().Next(10000).ToString()),
Text = results[i].DisplayName
};CalloutCommands.AddCallout.Execute(callout);
Which looks like the constructor is the point, layer and text to add. But I cannot find any documentation to support this either.
I am going to try and knock something like this up, so I can see if it works.
0 -
Any answers on this?
There is a lot of similar questions about this in the forum. - But I have not found any answers sofar.
There must be a way!
Regards
David
0 -
still an unsovled question for me. I've tried a few ways as descripted at
https://support.geocortex.com/essentialsGSCForum?sub-nav=forum&main-nav=essentials&#!/feedtype=SINGLE_QUESTION_DETAIL&criteria=ALLQUESTIONS&id=9066000000008w8AAA
but not working.0 -
Has there been anyone that has done this yet? I am very interested in this also. 0 -
Hi John,
Not sure if you're still searching for the solution to this but here is something that I've used successfully for labelling addresses and other points in several of my workflows.
You need to use the "UpdateGraphicsLayer" activity on the point FeatureSet to which you want to add text. In the Renderer parameter use an Esri TextSymbol rendering. You can also run this same activity with another layer name and point rendering to draw the actual point as well. Here is a code snippet of how text rendering would look:New ESRI.ArcGIS.Client.SimpleRenderer() With { .Symbol = new ESRI.ArcGIS.Client.Symbols.TextSymbol() With { .FontFamily = New System.Windows.Media.FontFamily("Arial"), .FontSize = 12.0, .FontStyle = System.Windows.FontStyles.Normal, .FontWeight = System.Windows.FontWeights.Normal, .Foreground = new System.Windows.Media.SolidColorBrush(Black), .OffsetX = 0.0, .OffsetY = 0.0, .Text = "My text here!" } }You could also use a reverse Geocode action and assign the address result to a string variable which can then be inserted in the ".Text =" parameter in the renderer. You can modify the color, label placement, font type, etc. by filling in the other parameters. Here are the properties which are available: https://developers.arcgis.com/silverlight/api-reference/#ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Symbols.TextSymbol_properties.html (https://developers.arcgis.com/silverlight/api-reference/#ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Symbols.TextSymbol_properties.html)
Hope this helps!0 -
Thanks Scott your tip works great! thanks 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
8 Kommentare