B
B
bbquite2019-05-19 17:40:00
JavaScript
bbquite, 2019-05-19 17:40:00

Error loading Yandex Maps, what should I do?

Why, if you do not specify the onload parameter when connecting the Yandex Maps API, then an error occurs:
(index): 621 Uncaught ReferenceError: ymaps is not defined

At the same time, if you specify:
onload=YandexMapRoute

Then everything works.

The essence of the question: how to make maps work without calling a function on onload?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SagePtr, 2019-05-19
@WebDev921

View what is being done in the YandexMapRoute function and do the same, but without calling the function.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question