Enter X/Y Location and retain values?
I am allowing a user to enter DMS or UTM coords, zoom to the point of interest, and display the point on the map. I am trying to figure out the best way to show the coordinates in association with the point. A user may be adding 4-5 points for example, and needs to know which point relates to which coordinate.
Does anyone out there have a working solution of this in the HTML5 viewer? Seems like this is a fairly universal concept that maybe someone has already developed. It'd be almost the same thing as what the GVS viewer has with a coordinate showing up with a callout box.
I can come up with something, but just wanted to put a feeler out there so I am not reinventing the wheel.
We are working with Essentials 4.2.2 and 4.3.0... with GVH 2.3.3 and 2.4.0
thanks in advnance,
Ryan
-
Ryan,
This may help you with the point labebling. Take a look at the label mechanics in this workflow.
(http://support.geocortex.com/SupportForums/Thread.aspx?pageid=0&mid=2&ItemID=20&thread=58718) CSV Import
It basically reads a specifically formated .csv file, creates the graphics then zooms to the graphics extent. I'm not too happy with the labeling as I have not found a way to justify the text, nor get away from having to place the label text on seperate layers.
The zipfile contains 3 sample .csv files for testing.
- Rick
0 -
Thank you Rick!! Very cool solution you came up with for labeling... I may use part of this for my solution. TBD. Thanks for the sample regardless!
0 -
Hi Rick,
Your sample really helped me accompish my goal. However, I am having an issue with printing (with out-of-the-box tool) markups created from the graphics. The process just hangs. I am seeing this behavior in 4.2.2, not 4.3.0. Unfortunately, I am just discovering this problem, and the due date is today;) Of course, our prod server to host the solution in 4.2.2!
Any insight? Anyone else have any ideas?
0 -
I should add that the point shows up on the print, if I don't add a label to the graphic. I thought maybe it was an issue with the font, but it is using Arial, which the print template also uses for the map title, without issue.
0 -
Darn, I'm responding on a smartphone as I am away from the office until tomorrow morning. I did not try printing the output as I never thought about that. We only use the tool for location validation. The workflow was developed on the latest version of Essentials. My guess is it may be the renderer syntax for the text symbol. Are you drawing one point, then one label...another point then another label...and so on? Rick 0 -
Yes, one point, one label. They are essentially right clicking on the screen and I am plotting a lat/long or utm coordinate. I tried playing with the rendering and making it super simple, but that did not seem to matter. Here it is at it stands:
New ESRI.ArcGIS.Client.SimpleRenderer() With { .Symbol = New ESRI.ArcGIS.Client.Symbols.TextSymbol() With {.Text = "Long/Lat: " + xLabel + ", " + yLabel, .FontSize = fontSize, .OffsetX = xCoordLblOffSet, .OffsetY = yCoordLblOffSet, .FontFamily = New System.Windows.Media.FontFamily("Arial"), .Foreground = New System.Windows.Media.SolidColorBrush(Colors.Red), .FontWeight = FontWeights.Bold}}
0 -
Do you know the font that Geocortex uses for the Draw text tool? You may want to try that font. Rick 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
7 Kommentare