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

DataSets[Builtin][WorldMap]

 insert a list of points all at once into a WorldMap object

Parameters

 m - a WorldMap object ref - a Reference to the GeoNames dataset plist - a nested list representing a list of points plotopts - (optional) plot options for all points in plist

Description

 • The AddPoints command bulk inserts points into m.
 • If ref is given, all points in ref get inserted into m.
 • If plist is given, each point in plist must be a list of either two or three elements. The first element is the longitude (x-coordinate in the Geographic projection), and the second element is 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].
 • If you want to insert multiple points into a WorldMap object, it is more efficient to use AddPoints than calling AddPoint multiple times for the same functionality.
 • plotopts specify how all points in plist get displayed in 2D projections. This option is ignored when visualizing the resulting map in 3D. By default, all points are displayed as black asterisks.

Examples

 > $m≔\mathrm{DataSets}:-\mathrm{Builtin}:-\mathrm{WorldMap}\left(\right)$
 ${m}{≔}\left(\begin{array}{cc}\left[{\mathrm{PLOT}}{}\left({\mathrm{...}}\right)\right]& \begin{array}{c}{\mathrm{A map of the world}}\\ {\mathrm{projection: MillerCylindrical}}\end{array}\end{array}\right)$ (1)
 > $\mathrm{AddPoints}\left(m,\left[\left[-10,-10,"a"\right],\left[10,-10,"b"\right],\left[10,10,"c"\right],\left[-10,10,"d"\right]\right],\mathrm{symbol}=\mathrm{box}\right)$
 $\left(\begin{array}{cc}\left[{\mathrm{PLOT}}{}\left({\mathrm{...}}\right)\right]& \begin{array}{c}{\mathrm{A map of the world with 4 points}}\\ {\mathrm{projection: MillerCylindrical}}\end{array}\end{array}\right)$ (2)
 > $\mathrm{Display}\left(m\right)$

Compatibility

 • The DataSets[Builtin][WorldMap][AddPoints] command was introduced in Maple 2017.
 • For more information on Maple 2017 changes, see Updates in Maple 2017.