Я в шаблоне компонента "Элементы раздела" примерно делал так:
[CODE]<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<?foreach($arResult["ITEMS"] as $cell=>$arElement):?>
<? $this->AddEditAction($arElement['ID'], $arElement['EDIT_LINK'], CIBlock::GetArrayByID($arParams["IBLOCK_ID"], "ELEMENT_EDIT"));
$this->AddDeleteAction($arElement['ID'], $arElement['DELETE_LINK'], CIBlock::GetArrayByID($arParams["IBLOCK_ID"], "ELEMENT_DELETE"), array("CONFIRM" => GetMessage('CT_BCS_ELEMENT_DELETE_CONFIRM'))); $name = $arElement["NAME"];
$coords = explode(",", $arElement["DISPLAY_PROPERTIES"]["MAP"]["VALUE"]);
$coord_x = $coords[0];
$coord_y = $coords[1];
?>
<?$APPLICATION->IncludeComponent(
"bitrix:map.yandex.view",
"",
Array(
"INIT_MAP_TYPE" => "MAP",
"MAP_DATA" => "a:4:{s:10:\"yandex_lat\";d:$coord_x;s:10:\"yandex_lon\";d:$coord_y;s:12:\"yandex_scale\";i:10;s:10:\"PLACEMARKS\";a:1:{i:0;a:3:{s:3:\"LON\";d:$coord_y;s:3:\"LAT\";d:$coord_x;s:4:\"TEXT\";s:".strlen($name).":\"$name\";}}}",
"MAP_WIDTH" => "400",
"MAP_HEIGHT" => "200",
"CONTROLS" => array("ZOOM","MINIMAP","TYPECONTROL","SCALELINE"),
"OPTIONS" => array("ENABLE_SCROLL_ZOOM","ENABLE_DBLCLICK_ZOOM","ENABLE_DRAGGING"),
"MAP_ID" => $arElement["ID"]
)
);?>
<?endforeach; // foreach($arResult["ITEMS"] as $arElement):?> [/CODE]