F
F
Frostik122021-03-25 11:10:57
Yandex maps
Frostik12, 2021-03-25 11:10:57

How to change the text of the yandex card in 1C Bitrix?

There is a code that displays a map on the site

<?$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" => "yam_1",
    "MAP_WIDTH" => "100%",
    "OPTIONS" => array("ENABLE_DBLCLICK_ZOOM","ENABLE_DRAGGING")
  )
);?>


If you want to change the text in "TEXT \" TO any other city, the map stops working and shows Moscow by default, what's the matter?

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