Guest User

Untitled

a guest
Jan 21st, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. ymaps.ready(function () {
  2. var myMap = new ymaps.Map('map', {
  3. center: [53.902948, 27.557098],
  4. zoom: 9
  5. }, {}),
  6. objectManager = new ymaps.ObjectManager();
  7. myMap.geoObjects.add(objectManager);
  8. objectManager.add({"type":"FeatureCollection","features":[{"type":"Feature","id":101,"geometry":{"type":"Polygon","coordinates":[[/*...*/],[/*...*/]]},"options":{"fillColor":"#4861fb99","strokeColor":"#4861fbcc","strokeWidth":2}}]});
  9. });
  10.  
  11. ymaps.ready(function () {
  12. var myMap = new ymaps.Map('map', {
  13. center: [53.902948, 27.557098],
  14. zoom: 9
  15. }, {});
  16. var newPolygon = new ymaps.Polygon([[/*...*/],[/*...*/]], {}, {
  17. fillColor:"#4861fb99",
  18. strokeColor:"#4861fbcc",
  19. strokeWidth:2
  20. });
  21. myMap.geoObjects.add(newPolygon);
  22. });
Add Comment
Please, Sign In to add comment