Skip to main content

Basic usage

Description

The following are examples of the basic usage of the map. For more information about the work with the map, see the Installing API and the Map sections.

Creating a map

Creating a map on demand

To initialize the map on demand (for example, when displaying the map in a popup window):

Using connection options

The following is an example of calling the map with the options pkg=basic, skin=light. As a result, you get a build with basic functionality in the light theme:

See the full list of options in the Connection options section.

Changing a map size

When you click the button, the size of the container changes and the map adjusts to the new size:

Disabling interaction options

Example of static map display:

Determining the user location

An example of determining the user geographic location: