ZoomIn - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

# Online Help

###### All Products    Maple    MapleSim

DataSets[Builtin][WorldMap]

 ZoomIn
 zoom in at a focus point
 ZoomOut
 zoom out at a focus point

 Calling Sequence ZoomIn(m) ZoomIn(m,ref) ZoomIn(m,p) ZoomOut(m) ZoomOut(m,ref) ZoomOut(m,p)

Parameters

 m - a WorldMap object ref - a Reference to the GeoNames dataset p - a list representing a point

ZoomIn

 • The ZoomIn command zooms in the view with respect to some focus point.
 • If only m is given, the focus point will be the current view center.
 • If ref is supplied, ref must contain exactly one row, so that it corresponds to exactly one point.
 • If a point p is supplied, p will be the focus point for zooming in.
 • p must be a list of two elements. The first element in p is the longitude (x-coordinate in the Geographic projection), and the second element in p is the latitude (y-coordinate in the Geographic projection).

ZoomOut

 • The ZoomOut command zooms out the view with respect to some focus point.
 • If only m is given, the focus point will be the current view center.
 • If ref is supplied, ref must contain exactly one row, so that it corresponds to exactly one point.
 • If a point p is supplied, p will be the focus point for zooming out.
 • p must be a list of two elements. The first element in p is the longitude (x-coordinate in the Geographic projection), and the second element in p is the latitude (y-coordinate in the Geographic projection).

Examples

 > $\mathrm{ref}≔{\mathrm{DataSets}:-\mathrm{Builtin}:-\mathrm{Reference}\left("Geonames"\right)}_{\left[\mathrm{Country}="Canada",\mathrm{Name}="Waterloo"\right]}$
 ${\mathrm{ref}}{≔}\left[\begin{array}{ccccc}{\mathrm{Geonames \left(GeoNamesid\right)}}& {\mathrm{Name}}& {\mathrm{Type}}& {\dots }& {\mathrm{\left(7 more\right)}}\\ {\mathrm{6176821}}& {\mathrm{Waterloo}}& {"populated place"}& {\dots }& {}\\ {\mathrm{6176823}}& {\mathrm{Waterloo}}& {"populated place"}& {\dots }& {}\\ {\mathrm{8673866}}& {\mathrm{Waterloo}}& {"third-order administrative division"}& {\dots }& {}\end{array}\right]$ (1)
 > $m≔\mathrm{DataSets}:-\mathrm{Builtin}:-\mathrm{WorldMap}\left(\mathrm{ref}\right)$
 ${m}{≔}\left(\begin{array}{cc}\left[{\mathrm{PLOT}}{}\left({\mathrm{...}}\right)\right]& \begin{array}{c}{\mathrm{A map of the world with 3 points}}\\ {\mathrm{projection: MillerCylindrical}}\end{array}\end{array}\right)$ (2)
 > $\mathrm{Display}\left(m\right)$
 > $\mathrm{ZoomOut}\left(m\right)$
 $\left(\begin{array}{cc}\left[{\mathrm{PLOT}}{}\left({\mathrm{...}}\right)\right]& \begin{array}{c}{\mathrm{A map of the world with 3 points}}\\ {\mathrm{projection: MillerCylindrical}}\end{array}\end{array}\right)$ (3)
 > $\mathrm{Display}\left(m\right)$
 > $\mathrm{ZoomOut}\left(m\right)$
 $\left(\begin{array}{cc}\left[{\mathrm{PLOT}}{}\left({\mathrm{...}}\right)\right]& \begin{array}{c}{\mathrm{A map of the world with 3 points}}\\ {\mathrm{projection: MillerCylindrical}}\end{array}\end{array}\right)$ (4)
 > $\mathrm{Display}\left(m\right)$
 > $\mathrm{ZoomIn}\left(m,{\mathrm{ref}}_{1}\right)$
 $\left(\begin{array}{cc}\left[{\mathrm{PLOT}}{}\left({\mathrm{...}}\right)\right]& \begin{array}{c}{\mathrm{A map of the world with 3 points}}\\ {\mathrm{projection: MillerCylindrical}}\end{array}\end{array}\right)$ (5)
 > $\mathrm{ZoomIn}\left(m,{\mathrm{ref}}_{1}\right)$
 $\left(\begin{array}{cc}\left[{\mathrm{PLOT}}{}\left({\mathrm{...}}\right)\right]& \begin{array}{c}{\mathrm{A map of the world with 3 points}}\\ {\mathrm{projection: MillerCylindrical}}\end{array}\end{array}\right)$ (6)
 > $\mathrm{Display}\left(m\right)$

Compatibility

 • The DataSets[Builtin][WorldMap][ZoomIn] and DataSets[Builtin][WorldMap][ZoomOut] commands were introduced in Maple 2017.
 • For more information on Maple 2017 changes, see Updates in Maple 2017.

 See Also