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


# gml:Polygon

### Diagram

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

### Description {#desc}

Specifies the "Polygon" type of geo object.

If [ymaps: GeoObject](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/ymaps-GeoObject.md) has this tag, it indicates that the geo object is a polygon. The tag is a container for the descriptions of the exterior ([gml:exterior](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/gml-exterior.md)) and interior ([gml:interior](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/gml-interior.md)) boundaries of a polygon.

{% note alert %}

In Yandex.Maps JavaScript API versions 1.x, holes in polygons are not supported.

{% endnote %}

### Contains:

[gml:description](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/gml-description.md), [gml:exterior](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/gml-exterior.md), [gml:interior](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/gml-interior.md), [gml:metaDataProperty](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/gml-metaDataProperty.md), [gml:name](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/gml-name.md)

### May be included in elements by substitutions:

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

> ### gml:Polygon
> 
> Part of a YMapsML document that describes a quadrilateral:
> 
> ```xml
> <gml:Polygon>
>  <gml:exterior>
>  <gml:LinearRing>
>  <gml:posList>37.178027 55.486953 38.040535 55.486953 38.040535 56.018499 37.178027 56.018499 37.178027 55.486953</gml:posList>
>  </gml:LinearRing>
>  </gml:exterior>
> </gml:Polygon>
> ```

