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

  • 0
    Kind, how to give each polygon its own name and description
    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" 
    					}
    			);
    JavaScript Anonymous, Feb 25, 2020

  • 1 Answers
  • 0
    You have already written the answer to your question
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!