G
G
Genri_Rus2020-02-03 19:36:08
JavaScript
Genri_Rus, 2020-02-03 19:36:08

How to add such a description on the Yandex map?

Here is an example:
5e384bc17f8e8456829566.png

Here is the code:

<script type="text/javascript">
        ymaps.ready(init);
     
        function init() {
           
            var myMap = new ymaps.Map("map", {
                center: [55.76, 37.64],
                zoom: 12,
                controls: []
            });

            myMap.behaviors.disable(['scrollZoom', 'drag', 'dblClickZoom']);
     
            var myPlacemark = new ymaps.Placemark([55.76, 37.64], null, {
                iconContent: 'текст'
            }, {
                preset: 'islands#darkOrangeStretchyIcon'
            });
     
            myMap.geoObjects.add(myPlacemark);
     
        }
    </script>


And how to add such a description of OOO "Primer"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sashabeep, 2020-02-04
@Genri_Rus

Why didn't you read the API description?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question