DataSets[Builtin][WorldMap]

 insert a point into a WorldMap object

Parameters

 m - a WorldMap object p - a list representing a point plotopts - (optional) plot options for p

Description

 • The AddPoint command inserts the point p into m.
 • p must be a list of either two or three 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). 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].
 • plotopts specify how each individual point gets displayed. By default, a point is displayed as a black asterisk.

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)

Add a point with a label:

 > $\mathrm{AddPoint}\left(m,\left[-80.52,43.47,"Waterloo"\right],\mathrm{symbol}=\mathrm{solidcircle}\right)$
 $\left(\begin{array}{cc}\left[{\mathrm{PLOT}}{}\left({\mathrm{...}}\right)\right]& \begin{array}{c}{\mathrm{A map of the world with 1 point}}\\ {\mathrm{projection: MillerCylindrical}}\end{array}\end{array}\right)$ (2)

Add another point without a label:

 > $\mathrm{AddPoint}\left(m,\left[-100,45\right],\mathrm{symbol}=\mathrm{solidcircle},\mathrm{symbolsize}=20,\mathrm{color}="OrangeRed"\right)$
 $\left(\begin{array}{cc}\left[{\mathrm{PLOT}}{}\left({\mathrm{...}}\right)\right]& \begin{array}{c}{\mathrm{A map of the world with 2 points}}\\ {\mathrm{projection: MillerCylindrical}}\end{array}\end{array}\right)$ (3)
 > $\mathrm{Display}\left(m\right)$
 > 

Compatibility

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