Answer the question
In order to leave comments, you need to log in
Yandex.Map is not loading. Error in console ymaps.Map is not a constructor. How to fix?
There is a code to display the map:
function initMap() {
var myMap = new ymaps.Map('YMapsID', {
center: [coord_x, coord_y],
zoom: 9
}, {
searchControlProvider: 'yandex#search'
});
};
ymaps.ready(initMap);
Answer the question
In order to leave comments, you need to log in
Maybe because of center: [coord_x, coord_y;],
this part. How it works? Also, where are the scripts included?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question