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, use the Connect API and the Map documentation sections.

Create map

Create map on demand

Map initialization on demand (useful when displaying the map in a popup window):

The use of connection options

The following is an example of calling the map with the following set of options: pkg=basic, skin=light. As a result, we get a build with basic functionality in the light theme. All options can be viewed in the Connection Options section.

Change 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's location

An example of determining the user's geographic location: