<?xml version="1.0" encoding="windows-1251"?>
<ymaps:ymaps xmlns:ymaps="http://maps.yandex.ru/ymaps/1.x" xmlns:repr="http://maps.yandex.ru/representation/1.x" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maps.yandex.ru/schemas/ymaps/1.x/ymaps.xsd">
    <repr:Representation>
        <repr:Style gml:id="mystyle">
            <repr:balloonContentStyle>
                <repr:template>#customTemplate</repr:template>
            </repr:balloonContentStyle>
        </repr:Style>

        <repr:Template gml:id="customTemplate">
            <repr:text>
                <![CDATA[<div><h4>$[description]</h4><img src="http:$[metaDataProperty.AnyMetaData.link]" alt=""/></div></div>]]>
            </repr:text>
        </repr:Template>
    </repr:Representation>

    <ymaps:GeoObjectCollection>
        <gml:featureMember>
            <ymaps:GeoObject>
                <gml:description>г.Москва, ул.Самокатная, д.1, стр.21</gml:description>
                <gml:metaDataProperty>
                        <AnyMetaData>
                           <link>//api.yandex.ru/images/maps/ymapsml/examples/samokatnaya.jpg</link>
                        </AnyMetaData>
                    </gml:metaDataProperty>
                <gml:Point>
                    <gml:pos>37.678514 55.758255</gml:pos>
                </gml:Point>
                <ymaps:style>#mystyle</ymaps:style>
            </ymaps:GeoObject>
        </gml:featureMember>
    </ymaps:GeoObjectCollection>
</ymaps:ymaps>

