A
A
Alexey2018-06-25 15:27:42
1C-Bitrix
Alexey, 2018-06-25 15:27:42

Yandex map is not loaded. Throws a TypeError: ymaps.Map is not a constructor. What could be the reason?

I connect the bitrix:map.yandex.view component, but the map is loaded periodically, and in the console there is such an error TypeError: ymaps.Map is not a constructor. Connecting the component itself

<?$APPLICATION->IncludeComponent(   "bitrix:map.yandex.view",
   ".default",
   Array(
      "INIT_MAP_TYPE" => "MAP",
      "MAP_DATA" => "a:4:{s:10:\"yandex_lat\";d:55.65596258757502;s:10:\"yandex_lon\";d:52.26924931768435;s:12:\"yandex_scale\";i:12;s:10:\"PLACEMARKS\";a:1:{i:0;a:3:{s:3:\"LON\";d:52.273882255295;s:3:\"LAT\";d:55.654677630412;s:4:\"TEXT\";s:42:\"Центральный Офис Эссен\";}}}",
      "MAP_WIDTH" => "600",
      "MAP_HEIGHT" => "370",
      "CONTROLS" => array("ZOOM","TYPECONTROL","SCALELINE"),
      "OPTIONS" => array("ENABLE_DBLCLICK_ZOOM","ENABLE_DRAGGING"),
      "MAP_ID" => ""
   )
);?>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question