P
P
Pavel Sidorov2020-10-13 20:31:45
JavaScript
Pavel Sidorov, 2020-10-13 20:31:45

How to give each polygon its own name and description (api yandex maps)?

Good, how to set a name and description for each polygon

myPolygon = new ymaps.Polygon(
      [ 
        [ 
          [ -520.219, -1223.00 ], [ -26.2188, -1227.00 ], [ -26.2188, -81.0000 ], [ -520.219, -81.0000 ], [ -520.219, -1223.00 ],
        ], 
        [ 
          [ 167.011, 208.186 ], [ 521.011, 207.186 ], [ 521.011, -214.814 ], [ 167.011, -214.814 ], [ 167.011, 208.186 ] 
        ],
      ],
          {
            hintContent: "Многоугольник2",
            balloonContent: "Тестирование показа описания2" 
          }
      );

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
t800zippygod, 2020-10-18
@t800zippygod

You have already answered your question

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question