Подскажите как разобраться?
Использую ShopCMS, на странице контактов хотел вставить карту, но увы отображается только статическая.
вот код шаблона этой страницы:
{* шаблон формы обратной связи *} {include file="header.tpl.html" header=$smarty.const.STRING_FEEDBACK}
YMaps.jQuery(function () {
var map = new YMaps.Map(YMaps.jQuery("#YMapsID-5911")[0]);
map.setCenter(new YMaps.GeoPoint(37.637077,55.791812), 14, YMaps.MapType.MAP);
map.addControl(new YMaps.Zoom());
map.addControl(new YMaps.ToolBar());
map.addControl(new YMaps.TypeControl());
YMaps.Styles.add("constructor#pmpnlPlacemark", {
iconStyle : {
href : "http://api-maps.yandex.ru/i/0.3/placemarks/pmpnl.p ",ng
size : new YMaps.Point(36,41),
offset: new YMaps.Point(-13,-40)
}
});
map.addOverlay(createObject("Placemark", new YMaps.GeoPoint(37.641369,55.786202), "constructor#pmpnlPlacemark", "Офис компании ООО \"Mega Systems\""));
function createObject (type, point, style, description) {
var allowObjects = ["Placemark", "Polyline", "Polygon"],
index = YMaps.jQuery.inArray( type, allowObjects),
constructor = allowObjects[(index == -1) ? 0 : index];
description = description || "";
var object = new YMaps[constructor](point, {style: style, hasBalloon : !!description});
object.description = description;
return object;
}
});
{$smarty.const.STRING_FEEDBACK_DESCRIPTION}
{if $sent eq NULL} {if $error ne NULL}{if $error eq 2}{$smarty.const.ERR_WRONG_CCODE}{elseif $error eq 3}{$smarty.const.ERR_WRONG_POST}{else}{$smarty.con st.FEEDBACK_ERROR_FILL_IN _FORM}{/if}
{/if} {$smarty.const.FEEDBACK_CUSTOMER_NAME}
{$smarty.const.CUSTOMER_EMAIL}
{$smarty.const.FEEDBACK_CUSTOMER_MESSAGE_SUBJ}
{$smarty.const.FEEDBACK_CUSTOMER_MESSAGE_TEXT}
{$message_text}
{if $smarty.const.CONF_ENABLE_CONFIRMATION_CODE eq 1}
{/if}
{$smarty.const.OK_BUTTON3} | {$smarty.const.RESET_BUTTON}
{else} {$smarty.const.FEEDBACK_SENT_SUCCESSFULLY}
{/if}
http://shop.airlia.ru/feedback.html