F
F
Frostik122021-03-25 09:57:11
1C-Bitrix
Frostik12, 2021-03-25 09:57:11

How to insert 2 Yandex cards on the 1C Bitrix site?

The crux of the matter is that the site has 2 Yandex maps. Why does the map stop working when I change \"TEXT\" to some other address?

<?$APPLICATION->IncludeComponent(
  "bitrix:map.yandex.view",
  "",
  Array(
    "CONTROLS" => array("ZOOM"),
    "INIT_MAP_TYPE" => "MAP",
    "MAP_DATA" => "a:4:{s:10:\"yandex_lat\";d:44.047876765661016;s:10:\"yandex_lon\";d:43.04460371923822;s:12:\"yandex_scale\";i:12;s:10:\"PLACEMARKS\";a:1:{i:0;a:3:{s:3:\"LON\";d:43.00649489355465;s:3:\"LAT\";d:44.056543020415;s:4:\"TEXT\";s:94:\"Кровля Профи###RN###Пятигорспк, Беговая, 21###RN###+7 (8793) 404-606\";}}}",
    "MAP_HEIGHT" => "500",
    "MAP_ID" => "",
    "MAP_WIDTH" => "100%",
    "OPTIONS" => array("ENABLE_DBLCLICK_ZOOM","ENABLE_DRAGGING")
  )
);?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-03-25
@idruweb

"MAP_ID" => ""

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question