8/26/2024 8:04 PM | |
Joined: 1/21/2013 Last visit: 11/13/2024 Posts: 3263 Rating: (507)
|
Hi Rui_t, MaximumZoom and MinimumZoom are properties of the layer. To use them, you would have to access the layers, not the screen window. However, this will not help you because these properties affect the visibility of a layer depending on the zoom factor. They do not limit the zoom itself. One problem with your scripting solution is that you are using it to dynamically change the zoom factor, which requires a trigger, probably a time cycle. This causes unnecessary high load. A second problem is that you are using the wrong value range. The zoom factor is a float value, where 1.0 is 100%. For better performance, I would recommend creating a script that is triggered by changing the zoom factor value. You can try the following approach, but please bear with me, I have not tested this solution.
Kind regards |
This contribution was helpful to1 thankful Users |
Follow us on