Answer the question
In order to leave comments, you need to log in
How to convert string to yandex map object of coordinates?
[55.7977,37.7283] - for example this term in the object.
From the back, I get strings, so I try to convert them for the loop
Answer the question
In order to leave comments, you need to log in
[55.7977,37.7283] - for example, this deadline in the object
JSON.parse(str)
str.match(/[0-9]+(\.[0-9]+)?/g).map(n => +n)
str.slice(1, -1).split(',').map(Number)
eval(str)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question