---
keywords: ymaps:style
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/maps/ymapsml/doc/en/llms.txt


# ymaps:style

### Diagram

![](../_images/style.png)

### Description {#desc}

Style for displaying an object or group of objects.

Contains the ID of the style defined by the [repr: Style](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/representation-Style.md) tag. The specified style is applied to a geo object or a group of geo objects.

{% note warning %}

The link to the template ID must be preceded by the hash character (**#**).

{% endnote %}

### Contained by:

[ymaps:GeoObject](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/ymaps-GeoObject.md), [ymaps:GeoObjectCollection](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/ymaps-GeoObjectCollection.md)

> ### ymaps:style
> 
> Setting a `customStyle` for a geo object (geo points):
> 
> ```xml
> <ymaps:GeoObject>
>     <ymaps:style>#customStyle</ymaps:style>
>     <gml:Point>
>         <gml:pos>37.63 55.75</gml:pos>
>     </gml:Point>
> </ymaps:GeoObject>
> ```
> 
> Description of a `customStyle` for geo points:
> 
> ```
> <repr:Style gml:id="customStyle">
>     <repr:parentStyle>default#greenPoint</repr:parentStyle>
>     <repr:iconStyle>
>         <repr:href>http://info.maps.yandex.net/api/i/steelblue/dot.png</repr:href>
>         <repr:size x="26" y="46"/>
>         <repr:offset x="-22" y="-46"/>
>         <repr:shadow>
>             <repr:href>http://info.maps.yandex.net/api/i/dot_shadow.png</repr:href>
>             <repr:size x="25" y="23"/>
>             <repr:offset x="0" y="-25"/>
>         </repr:shadow>
>     </repr:iconStyle>
> </repr:Style>
> ```

