DataSets[Builtin][WorldMap] - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Statistics and Data Analysis : DataSets Package : Builtin : WorldMap : DataSets/Builtin/WorldMap/SetCenter

DataSets[Builtin][WorldMap]

  

SetCenter

  

specify the view center for a WorldMap object

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

SetCenter(m,ref)

SetCenter(m,p)

Parameters

m

-

a WorldMap object

ref

-

a Reference to the GeoNames dataset

p

-

a list representing a point

Description

• 

The SetCenter command changes the view center of m to a specified position.

• 

If ref is supplied, ref must contain exactly one row, so that it corresponds to exactly one point.

• 

If an explicit point p is given, the center point is set to be p.

• 

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).

• 

If the latitude of the desired center is outside the allowed range for the current zoom level, the resulting center's latitude is set to either the maximum or minimum of the allowed range depending on whether the desired center is above or below the range. For example, at zoom level 1, the only allowed center latitude is 0, so setting it to anything other than 0 results in no change.

Examples

mDataSets:-Builtin:-WorldMap

mPLOT...A map of the worldprojection: MillerCylindrical

(1)

SetCenterm,100,20

PLOT...A map of the worldprojection: MillerCylindrical

(2)

Note that the center's y-coordinate is still 0.

Displaym

refDataSets:-Builtin:-ReferenceGeonamesCountry=Canada,Name=Waterloo

refGeonames (GeoNamesid)NameType(7 more)6176821Waterloopopulated place6176823Waterloopopulated place8673866Waterloothird-order administrative division

(3)

m2DataSets:-Builtin:-WorldMapref

m2PLOT...A map of the world with 3 pointsprojection: MillerCylindrical

(4)

SetCenterm2,ref1

PLOT...A map of the world with 3 pointsprojection: MillerCylindrical

(5)

Displaym2

Compatibility

• 

The DataSets[Builtin][WorldMap][SetCenter] command was introduced in Maple 2017.

• 

For more information on Maple 2017 changes, see Updates in Maple 2017.

See Also

SetView

WorldMap

ZoomIn

ZoomOut