I can not get the preset option to work. Here is a sample code:

 var myPlacemark = new ymaps.Placemark( [ coords_arr[1], coords_arr[0] ], { iconContent: icon_text, balloonContent: balloon_content }, { // Иконка метки будет растягиваться под размер ее содержимого. preset: 'twirl#redStretchyIcon', //icon_preset, balloonContentSize: [458, 320], // размер нашего кастомного балуна в пикселях balloonLayout: "default#imageWithContent", // указываем что содержимое балуна кастомная херь balloonImageHref: css_location+'/img/map/balloon.png', // Картинка заднего фона балуна balloonImageOffset: [-229, -380], // смещание балуна, надо подогнать под стрелочку balloonImageSize: [458, 380], // размер картинки-бэкграунда балуна balloonShadow: false } ); 

As a result, I have the most default blue "point" without "stretching." Tell me what to do?

PS: in API 2.0 everything works as it should (only there I use new ymaps.GeoObject() ). In API 2.1, it does not work through Placemark() or through GeoObject() .

    1 answer 1

    In version 2.1, the twirl#... patterns twirl#... replaced by islands#... And there are no analogues to some templates in the new version (for example, many icons have sunk into oblivion).

    A full list of what is now supported can be found here.

    Updated:

    There are icons in a slightly different form. Full list of the link above.

    • Thank! I saw this dock, but I didn’t see that there was another “prefix” for the templates. - Vladimir