Aller au contenu principal

Feature Picture Box control max/min scale as compliment to Expand property

Commentaires

5 commentaires

  • Nico Burgerhart

    Hello Lee Brannon 

    Did you ever get feedback on this Idea?

    Or do you have a workaround to get it to work like you described?

    Was this idea related to a support case to VertiGIS?

    I basically want to achieve the same.

    0
  • Lee Brannon

    Hi Nico,

    Unfortunately, I did not get feedback from VertiGIS nor did I open a support case to try for a workaround.  I probably made a brief effort to find a workaround on my own and after failing to get anywhere just pushed the issue aside.  I would still like to be able to accomplish what I had hoped to do when I posted the Idea, so if you ever figure something out I'd love to know about it. Since migrating our Reports from Geocortex Essentials to VertiGIS Studio, I have not poked around to see if there is new functionality related to featurePictureBox that could help accomplish this.  Maybe i can look into it again soon. 

    0
  • Nico Burgerhart

    Lee Brannon 

    Thank you for your feedback!

    Perhaps it is possible with scripting by getting the bounding box for a feature and use a script (with additional logic) in the BeforePrint event and set the the scale there.

    private void featurePictureBox1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) 

    {
       featurePictureBox1.Scale = 1000;
    }

    0
  • Lee Brannon

    Ah, you could be on to something there.  Thanks for sharing that thought!

    0
  • Nico Burgerhart

    A way to get the desired result is to put an expression in the Scale property like

    Iif([Shape_STArea()] < 10, 10000, 0)

    or

    Iif(ElementAt(GetBoundingBox([@Feature], 1), 2) - ElementAt(GetBoundingBox([@Feature], 1), 0) < 50, 2500, 0)
    1

Vous devez vous connecter pour laisser un commentaire.