<?xml version='1.0' encoding='utf-8'?>
<netcatml>
  <widgetclasses>
    <widgetclass>
      <ID>64</ID>
      <Name>Яндекс: Карты</Name>
      <Keyword>ya-map_hc</Keyword>
      <Description><![CDATA[]]></Description>
      <Category>!en.by</Category>
      <InDevelop>0</InDevelop>
      <Template><![CDATA[<div id="<?= $f_container_id; ?>" style="width: <?= $f_container_width; ?>; height: <?= $f_container_height; ?>;"></div>

<script>
    function fid_yamap_container(ymaps) {
        var map = new ymaps.Map("<?= $f_container_id; ?>", {
            center: [<?= $f_map_center_x; ?>, <?= $f_map_center_y; ?>],
            zoom: <?= $f_map_zoom; ?>,
            type: "yandex#map"});


        <? if ($f_use_zoom_control || $f_use_map_tools || $f_use_type_selector) { ?>
        map.controls<?= $f_use_zoom_control  ? '.add("zoomControl")' : ''; ?>
                    <?= $f_use_map_tools     ? '.add("mapTools")'    : ''; ?>
                    <?= $f_use_type_selector ? '.add(new ymaps.control.TypeSelector(["yandex#map", "yandex#satellite", "yandex#hybrid", "yandex#publicMap"]))' : ''; ?>;
        <? } ?>
        
        
        <? if ($f_mark_x && $f_mark_y) { ?>
        var myPlacemark = new ymaps.Placemark([<?= $f_mark_x; ?>, <?= $f_mark_y; ?>], {
                    iconContent: '<?= $f_icon_content ? $f_icon_content : ""; ?>',
                    balloonContentHeader: '<?= $f_balloon_content_header ? $f_balloon_content_header : ""; ?>',
                    balloonContentBody: '<?= $f_balloon_content_body ? $f_balloon_content_body : ""; ?>',
                    balloonContentFooter: '<?= $f_balloon_content_footer ? $f_balloon_content_footer : ""; ?>',
                    hintContent: '<?= $f_hint_content ? $f_hint_content : ""; ?>'
        },{
                    preset: '<?= $f_preset ? $f_preset : "twirl#violetStretchyIcon"; ?>'
        });

        map.geoObjects.add(myPlacemark);
        <? } ?>
    }
</script>

<script src="http://api-maps.yandex.ru/2.0/?coordorder=longlat&load=package.full&wizard=constructor&lang=ru-RU&onload=fid_yamap_container"></script>]]></Template>
      <Settings><![CDATA[<?php
$f_container_id = $f_container_id ? $f_container_id : "ymaps-map-id_" . substr($nc_core->get_settings('SecretKey'), 4, 6);
$f_container_width = ($f_container_width ? $f_container_width : '450px');
$f_container_height = ($f_container_height ? $f_container_height : '350px');
$f_map_zoom = +($f_map_zoom ? $f_map_zoom : 14);
?>]]></Settings>
      <AddForm><![CDATA[]]></AddForm>
      <EditForm><![CDATA[]]></EditForm>
      <WidgetDisallow>0</WidgetDisallow>
      <Update>1</Update>
    </widgetclass>
  </widgetclasses>
  <fields>
    <field type_of_data_id='1'>
      <Field_Name>container_width</Field_Name>
      <Description><![CDATA[Ширина контейнера]]></Description>
      <Format></Format>
      <NotNull>0</NotNull>
      <Priority>2</Priority>
      <DoSearch>0</DoSearch>
      <DefaultState></DefaultState>
      <Inheritance>0</Inheritance>
      <TypeOfEdit_ID>1</TypeOfEdit_ID>
    </field>
    <field type_of_data_id='1'>
      <Field_Name>container_id</Field_Name>
      <Description><![CDATA[ID контейнера div с картой]]></Description>
      <Format></Format>
      <NotNull>0</NotNull>
      <Priority>1</Priority>
      <DoSearch>0</DoSearch>
      <DefaultState></DefaultState>
      <Inheritance>0</Inheritance>
      <TypeOfEdit_ID>1</TypeOfEdit_ID>
    </field>
    <field type_of_data_id='1'>
      <Field_Name>container_height</Field_Name>
      <Description><![CDATA[Высота контейнера]]></Description>
      <Format></Format>
      <NotNull>0</NotNull>
      <Priority>3</Priority>
      <DoSearch>0</DoSearch>
      <DefaultState></DefaultState>
      <Inheritance>0</Inheritance>
      <TypeOfEdit_ID>1</TypeOfEdit_ID>
    </field>
    <field type_of_data_id='1'>
      <Field_Name>map_center_x</Field_Name>
      <Description><![CDATA[Х координата центра карты]]></Description>
      <Format></Format>
      <NotNull>1</NotNull>
      <Priority>4</Priority>
      <DoSearch>0</DoSearch>
      <DefaultState></DefaultState>
      <Inheritance>0</Inheritance>
      <TypeOfEdit_ID>1</TypeOfEdit_ID>
    </field>
    <field type_of_data_id='1'>
      <Field_Name>map_center_y</Field_Name>
      <Description><![CDATA[У координата центра карты]]></Description>
      <Format></Format>
      <NotNull>1</NotNull>
      <Priority>5</Priority>
      <DoSearch>0</DoSearch>
      <DefaultState></DefaultState>
      <Inheritance>0</Inheritance>
      <TypeOfEdit_ID>1</TypeOfEdit_ID>
    </field>
    <field type_of_data_id='2'>
      <Field_Name>map_zoom</Field_Name>
      <Description><![CDATA[Масштаб карты]]></Description>
      <Format></Format>
      <NotNull>1</NotNull>
      <Priority>6</Priority>
      <DoSearch>0</DoSearch>
      <DefaultState></DefaultState>
      <Inheritance>0</Inheritance>
      <TypeOfEdit_ID>1</TypeOfEdit_ID>
    </field>
    <field type_of_data_id='5'>
      <Field_Name>use_zoom_control</Field_Name>
      <Description><![CDATA[Масштабирование]]></Description>
      <Format></Format>
      <NotNull>0</NotNull>
      <Priority>7</Priority>
      <DoSearch>0</DoSearch>
      <DefaultState></DefaultState>
      <Inheritance>0</Inheritance>
      <TypeOfEdit_ID>1</TypeOfEdit_ID>
    </field>
    <field type_of_data_id='5'>
      <Field_Name>use_map_tools</Field_Name>
      <Description><![CDATA[Инструменты]]></Description>
      <Format></Format>
      <NotNull>0</NotNull>
      <Priority>8</Priority>
      <DoSearch>0</DoSearch>
      <DefaultState></DefaultState>
      <Inheritance>0</Inheritance>
      <TypeOfEdit_ID>1</TypeOfEdit_ID>
    </field>
    <field type_of_data_id='5'>
      <Field_Name>use_type_selector</Field_Name>
      <Description><![CDATA[Режим карты]]></Description>
      <Format></Format>
      <NotNull>0</NotNull>
      <Priority>9</Priority>
      <DoSearch>0</DoSearch>
      <DefaultState></DefaultState>
      <Inheritance>0</Inheritance>
      <TypeOfEdit_ID>1</TypeOfEdit_ID>
    </field>
    <field type_of_data_id='1'>
      <Field_Name>mark_x</Field_Name>
      <Description><![CDATA[Х координата метки]]></Description>
      <Format></Format>
      <NotNull>0</NotNull>
      <Priority>10</Priority>
      <DoSearch>0</DoSearch>
      <DefaultState></DefaultState>
      <Inheritance>0</Inheritance>
      <TypeOfEdit_ID>1</TypeOfEdit_ID>
    </field>
    <field type_of_data_id='1'>
      <Field_Name>mark_y</Field_Name>
      <Description><![CDATA[Y координата метки]]></Description>
      <Format></Format>
      <NotNull>0</NotNull>
      <Priority>11</Priority>
      <DoSearch>0</DoSearch>
      <DefaultState></DefaultState>
      <Inheritance>0</Inheritance>
      <TypeOfEdit_ID>1</TypeOfEdit_ID>
    </field>
    <field type_of_data_id='1'>
      <Field_Name>icon_content</Field_Name>
      <Description><![CDATA[Контент метки]]></Description>
      <Format></Format>
      <NotNull>0</NotNull>
      <Priority>12</Priority>
      <DoSearch>0</DoSearch>
      <DefaultState></DefaultState>
      <Inheritance>0</Inheritance>
      <TypeOfEdit_ID>1</TypeOfEdit_ID>
    </field>
    <field type_of_data_id='1'>
      <Field_Name>balloon_content_header</Field_Name>
      <Description><![CDATA[Заголовок балуна]]></Description>
      <Format></Format>
      <NotNull>0</NotNull>
      <Priority>13</Priority>
      <DoSearch>0</DoSearch>
      <DefaultState></DefaultState>
      <Inheritance>0</Inheritance>
      <TypeOfEdit_ID>1</TypeOfEdit_ID>
    </field>
    <field type_of_data_id='3'>
      <Field_Name>balloon_content_body</Field_Name>
      <Description><![CDATA[Контент балуна]]></Description>
      <Format>5:60;html:1;br:2;fck:2;bbcode:0;usereditor:0;</Format>
      <NotNull>0</NotNull>
      <Priority>14</Priority>
      <DoSearch>0</DoSearch>
      <DefaultState></DefaultState>
      <Inheritance>0</Inheritance>
      <TypeOfEdit_ID>1</TypeOfEdit_ID>
    </field>
    <field type_of_data_id='3'>
      <Field_Name>balloon_content_footer</Field_Name>
      <Description><![CDATA[Контент балуна в подвале]]></Description>
      <Format>5:60;html:1;br:2;fck:2;bbcode:0;usereditor:0;</Format>
      <NotNull>0</NotNull>
      <Priority>15</Priority>
      <DoSearch>0</DoSearch>
      <DefaultState></DefaultState>
      <Inheritance>0</Inheritance>
      <TypeOfEdit_ID>1</TypeOfEdit_ID>
    </field>
    <field type_of_data_id='1'>
      <Field_Name>hint_content</Field_Name>
      <Description><![CDATA[Текст подсказки]]></Description>
      <Format></Format>
      <NotNull>0</NotNull>
      <Priority>16</Priority>
      <DoSearch>0</DoSearch>
      <DefaultState></DefaultState>
      <Inheritance>0</Inheritance>
      <TypeOfEdit_ID>1</TypeOfEdit_ID>
    </field>
    <field type_of_data_id='1'>
      <Field_Name>preset</Field_Name>
      <Description><![CDATA[Стиль метки]]></Description>
      <Format></Format>
      <NotNull>0</NotNull>
      <Priority>17</Priority>
      <DoSearch>0</DoSearch>
      <DefaultState></DefaultState>
      <Inheritance>0</Inheritance>
      <TypeOfEdit_ID>1</TypeOfEdit_ID>
    </field>
  </fields>
  <tar_data>H4sIALl1OVIAA+1aWW/bRhD2s4H+hwUTmHIri6JEyY6sAz3RoOmBJnkKAoMiVxIbmhTIVWylDZCkQA8kT0WBFkXTEwX66KRN6yax+xeof9TZJUWTEnXGlOOGg8SWZpdz7LczOxxvURKW4qYs0HqhQH+vr+dz7u9clvE9WhJzObFQKEjrorSUFbOSJC2hQuyWAXVsIlsILWGj3hXBkFE0afyUUlESLmJCNKNpZ1pkW49DBwW4CICOwr8g5l38iwWpmM8D/nkRpqGFLPYLjn+51m61l882thTTILJmYGtLU1EFDXJqQ5wS4rrbcttegx9rmrrFoQyyO3WbWKmzhgJzLbxWbWKyZXv7K8VfxIqFyTu4y6+mkZRGxdXNsOodTSUt0J6K4A5Y4DJLiJcK2fYuPyiphbVmiwyJ8tgDsjwuCMsHhIFfWzdMcxuEvJIKfmdP+99KSJTggVr1pKGciyD+L+Htti4TfFLxn8+vS0PxLxaS+F8ElVXtOtLUCleuDQX9JqpVOWSTro4rHIu3Ehqaxvh05iZywyhijjvAJnHVsgAqq8vLZVuxtDapLiOgRsdQiGYaqAGZpCvT4PIfT7E0s4o+ZjMpXQfEgAeBaeAdxIYz78rt1Egn0oGHKSnYINgqoSveA0wf423t0gfSaHigSweupkNyaAIoBedSBhMQmka6bUzTpWyoePcMzONuQsZY9ueUa0hrsEzVsTGTwVywTB198gny2FQ8M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