M
M
Makssof2021-04-27 19:40:35
JavaScript
Makssof, 2021-04-27 19:40:35

How to create a Yandex Map using the JS API?

I create a map like this:

ym.ready(function(){
  var yaSuggests = new ym.SuggestView('delivery_address', {provider: myProvider});
  var map = ym.Map("delivery_map", {}); // Так
});

Previously connected like this:
<script src="https://api-maps.yandex.ru/2.1?apikey=___________&lang=ru_RU&mode=debug&ns=ym" type="text/javascript"></script>

As a result, I catch the error: Uncaught TypeError: this.createEventMappingTable is not a function

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Zolin, 2021-04-27
@makssof

Proper use of documentation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question