Return data about the current map view and levels of magnification
Zoom_R <ScenarioPath> {DataOption} [<WinNumber>]
The Zoom_R command returns information about the magnification of a Map's view, including how many zoom operations have been performed to get the current Map view and the current view's latitude and longitude values.
You can optionally enter <WinNumber> which is the number of the 2D window for which information will be returned. If not entered then the first 2D window will used.
{DataOption} can be:
{DataOption} | <Parameters> and Description |
---|---|
Layers | Returns number of layers you're zoomed in, where 0 is the original view (not magnified) |
Coordinates | Returns the current window coordinates as four real numbers: minimum latitude, maximum latitude, minimum longitude, and maximum longitude. |
CoordAdjust | Returns the current window coordinates
as four real numbers: minimum latitude, maximum latitude, minimum
longitude, and maximum longitude, adjusted for the current map
projection.
Note: Coordinates are most accurate with flat projections (e.g. equidistant cylindrical, etc). |
All <Latitude> and <Longitude> values are returned in degrees.
To find out how many times you've zoomed in to get the current Map view in Map window #1:
Zoom_R * Layers 1
To get the latitude and longitude values for the current view in Map View #2:
Zoom_R * Coordinates
ZOOM_R 2Sample return message for the Zoom_R command using the Coordinates {DataOption}
2
ZOOM_R 28
26.000 46.000 52.000 92.000
This command belongs to the following group(s):
8.1
STK Programming Interface 11.0.1