Feature Picture Box control max/min scale as compliment to Expand property
Re: Geocortex Reporting
For the Feature Picture Box control, it would be great to have a minimum/maximum scale property you could set that would work with the Expand property. The Expand property would have most of say as to what the map scale will be but a min/max scale setting could provide the bounds in order to keep any specific map from being zoomed in or out too far.
For example, I like to use an Expand value of 2, but for very small parcels the resulting map is zoomed in so far as to not have any context as to what is around this parcel. If I could set a maximum scale to work with the Expand value then I'd be able to get a map that is zoomed out more and shows the context I want around the parcel.
-
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 -
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 -
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 -
Ah, you could be on to something there. Thanks for sharing that thought!
0 -
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.
Commentaires
5 commentaires