DataSets[Builtin]
WorldMap
create a WorldMap object
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
WorldMap()
WorldMap(ref,option)
WorldMap(points,option)
ref
-
a Reference to the GeoNames dataset
points
a list of points where each sublist defines a point by longitude, latitude, and an optional string label
option
(optional) keyword option of the form option=value, where option can be limit
limit : posint; specifies the maximum number of points that a WorldMap object is allowed to store. By default, the value of limit is 100.
The WorldMap command creates a WorldMap object that can be used to display maps of the world in various ways.
If no argument is specified, the command returns a WorldMap object with no point stored.
If a ref to the GeoNames dataset is given, the WorldMap object created loads all data points in ref.
If a nested list of points is given, the WorldMap object created stores all points in the nested list. Each sublist in points must be a list of at least two elements: the first being the longitude (x-coordinate in the Geographic projection) and the second being the latitude (y-coordinate in the Geographic projection). The optional third element is a string label for the point.
The longitude must lie in the interval [-180,180], and the latitude must lie in the interval [-90,90].
Note that the number of points in both ref and points cannot exceed limit.
Here is the list of commands defined for WorldMap objects:
AddPath
AddPoint
AddPoints
ChoroplethMap
Display
GetPointsList
Project
RemovePath
RemovePoint
ResetView
SetCenter
SetProjection
SetView
ZoomIn
ZoomOut
The Project command, used to project longitude-latitude pairs to different projections, does not operate on a WorldMap object, unlike most other commands in the WorldMap package.
For a list of supported map projections, see the List of Projections help page.
Create a WorldMap object with no points stored.
m≔DataSets:-Builtin:-WorldMap⁡
m≔PLOT⁡...A map of the worldprojection: MillerCylindrical
Display⁡m
Create a WorldMap object with three points stored.
m2≔DataSets:-Builtin:-WorldMap⁡121.5,31.2,Shanghai,−123.1,49.25,Vancouver,−118.25,34.05,Los Angeles
m2≔PLOT⁡...A map of the world with 3 pointsprojection: MillerCylindrical
Display⁡m2
Create a WorldMap object with a GeoNames dataset reference
ref≔DataSets:-Builtin:-Reference⁡GeonamesCountry=Canada,Name=Waterloo
ref≔
m3≔DataSets:-Builtin:-WorldMap⁡ref
m3≔PLOT⁡...A map of the world with 3 pointsprojection: MillerCylindrical
Display⁡m3
The DataSets[Builtin][WorldMap] command was introduced in Maple 2017.
For more information on Maple 2017 changes, see Updates in Maple 2017.
See Also
List of Projections
Download Help Document