Визиком карты

Markers

The markers are used to mark a certain point on the map. Proper image and message box describing given point can be selected for the marker.

Examples:

This example adds the marker on the map. For the marker sets information window appearing when you click on it and posibility to drag the marker by user are installed for the marker.

Display in browser:

Source code:

// Create marker
var marker = new VMarker({
    lng: 30.5114,
    lat: 50.4552
});
 
// Set draggable option
marker.draggable(true);
// The hint
marker.hint('Hint');
  
// Set header and description of information window
marker.info('header', 'Description');
 
// Add a marker on the map
map.add(marker);
// Repaint the map
map.repaint();