Creates a map that you embed on a webpage, and initializes its display properties and other options.
- MapKit JS 5.0+
A DOM element or the ID of a DOM element to use as this map's container.
Options defined in
Mapthat initialize properties of the map.
The map's constructor takes a parent argument and an optional options argument. The map's element is inserted into the DOM as a child of parent. The map element is styled to fill the size of its parent.
A map defaults to showing the entire world.
Adding a map to a DIV that's on the page: