Стандартно в это поле сохраняется только точка и карта потом по ней центрируется без масштаба.
Для задания текста точки или масштаба нужно завести отдельные поля. Вот примерный код вывода карты в шаблоне:
[CODE]<?
$coord=explode(",", $arResult["PROPERTIES"]["sheme_yandex"]["VALUE"]);
$MAP_KEY = '';
$strMapKeys = COPtion::GetOptionString('fileman', 'map_yandex_keys');
$strDomain = $_SERVER['HTTP_HOST'];
$wwwPos = strpos($strDomian, 'www.');
if ($wwwPos === 0)
$strDomain = substr($strDomain, 4);
if ($strMapKeys)
{
$arMapKeys = unserialize($strMapKeys);
if (array_key_exists($strDomain, $arMapKeys))
$MAP_KEY = $arMapKeys[$strDomain];
}
$MAP_DATA=Array
(
"yandex_lat" => $coord[0],
"yandex_lon" => $coord[1],
"yandex_scale" => "16",
"PLACEMARKS" => Array
(
"0" => Array
(
"TEXT" => $arResult["PROPERTIES"]["address"]["VALUE"],
"LON" => $coord[1],
"LAT" => $coord[0],
)
),
);
?>
<?$APPLICATION->IncludeComponent(
"bitrix:map.yandex.view",
"",
Array(
"KEY" => $MAP_KEY,
"INIT_MAP_TYPE" => "MAP",
"MAP_DATA" => serialize($MAP_DATA),
"MAP_WIDTH" => "670",
"MAP_HEIGHT" => "500",
"CONTROLS" => Array("TOOLBAR", "ZOOM", "MINIMAP", "TYPECONTROL", "SCALELINE"),
"OPTIONS" => Array("ENABLE_SCROLL_ZOOM", "ENABLE_DBLCLICK_ZOOM", "ENABLE_DRAGGING"),
"MAP_ID" => ""
)
);?>[/CODE]
Для задания текста точки или масштаба нужно завести отдельные поля. Вот примерный код вывода карты в шаблоне:
[CODE]<?
$coord=explode(",", $arResult["PROPERTIES"]["sheme_yandex"]["VALUE"]);
$MAP_KEY = '';
$strMapKeys = COPtion::GetOptionString('fileman', 'map_yandex_keys');
$strDomain = $_SERVER['HTTP_HOST'];
$wwwPos = strpos($strDomian, 'www.');
if ($wwwPos === 0)
$strDomain = substr($strDomain, 4);
if ($strMapKeys)
{
$arMapKeys = unserialize($strMapKeys);
if (array_key_exists($strDomain, $arMapKeys))
$MAP_KEY = $arMapKeys[$strDomain];
}
$MAP_DATA=Array
(
"yandex_lat" => $coord[0],
"yandex_lon" => $coord[1],
"yandex_scale" => "16",
"PLACEMARKS" => Array
(
"0" => Array
(
"TEXT" => $arResult["PROPERTIES"]["address"]["VALUE"],
"LON" => $coord[1],
"LAT" => $coord[0],
)
),
);
?>
<?$APPLICATION->IncludeComponent(
"bitrix:map.yandex.view",
"",
Array(
"KEY" => $MAP_KEY,
"INIT_MAP_TYPE" => "MAP",
"MAP_DATA" => serialize($MAP_DATA),
"MAP_WIDTH" => "670",
"MAP_HEIGHT" => "500",
"CONTROLS" => Array("TOOLBAR", "ZOOM", "MINIMAP", "TYPECONTROL", "SCALELINE"),
"OPTIONS" => Array("ENABLE_SCROLL_ZOOM", "ENABLE_DBLCLICK_ZOOM", "ENABLE_DRAGGING"),
"MAP_ID" => ""
)
);?>[/CODE]