Zum Hauptinhalt gehen

Enter X/Y Location and retain values?

Kommentare

7 Kommentare

  • Richard Diaz

    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
  • Ryan Kelley

    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
  • Ryan Kelley

    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
  • Ryan Kelley

    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
  • Richard Diaz
    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
  • Ryan Kelley

    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
  • Richard Diaz
    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.