Actually it is necessary that all the elements of navigation and the inscriptions on the map embedded in the site are absent. And the marker was like this enter image description here

  • And what have you tried to do? - Vitaly Emelyantsev
  • Already did everything himself. I added a map through the API and changed everything in the code. - Alexander

1 answer 1

I came to the answer myself, I need to add a map through the API and carry out the necessary manipulations with it.

YMaps.jQuery(function() { // Создает экземпляр карты и привязывает его к созданному контейнеру var map = new YMaps.Map(YMaps.jQuery("#YMapsID")[0]); // Устанавливает начальные параметры отображения карты: центр карты и коэффициент масштабирования map.setCenter(new YMaps.GeoPoint(30.357649, 59.979115), 16); // Создание стиля для содержимого балуна var baseStyle = new YMaps.Style(); baseStyle.iconStyle = new YMaps.IconStyle(); baseStyle.iconStyle.offset = new YMaps.Point(-20, -45); baseStyle.iconStyle.size = new YMaps.Point(28, 40); var styleFootBall = new YMaps.Style(baseStyle); styleFootBall.iconStyle = new YMaps.IconStyle(); styleFootBall.iconStyle.href = "../img/marker.png"; var placemark = new YMaps.Placemark(new YMaps.GeoPoint(30.357649, 59.979115), { style: styleFootBall }); map.addOverlay(placemark); })