yandex-maps-jsapi

введите сюда описание изображенияя хочу создать совественный template для метки но у меня в ymaps, нету метод ymaps.templateLayoutFactory.createClass

 ymaps.ready(function (e) {
          var map = new ymaps.Map('map', {
            center: [55.7, 37.6],
            zoom: 10,
            controls: []
          });

          console.log(ymaps.templateLayoutFactory.createClass) // вот здесь undefined

          var squareLayout = ymaps.templateLayoutFactory.createClass('<div class="placemark_layout_container"><div class="square_layout">$</div></div>');

          var squarePlacemark = new ymaps.Placemark(
                  [55.725118, 37.682145], {
                    hintContent: 'Placemark with a rectangular HTML layout'
                  }, {
                    iconLayout: squareLayout,
                    iconShape: {
                      type: 'Rectangle',
                    
                      coordinates: [
                        [-25, -25], [25, 25]
                      ]
                    }
                  }
          );
          map.geoObjects.add(squarePlacemark);
        }

Ответы (0 шт):