---
title: "AbstractMarker | Marker layout | JavaScript maps SDK"
description: "Documentation for Marker layout"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Type Alias AbstractMarker

Minimalist set of properties that represent a marker

type AbstractMarker \= {  
    [features](#features): MapGeoJSONFeature\[\];  
    [id](#id): number;  
    [internalElementSize](#internalelementsize): \[number, number\];  
    [position](#position): \[number, number\];  
    [size](#size): \[number, number\];  
}

-   Defined in [markerlayout.ts:15](https://github.com/maptiler/maptiler-marker-layout/blob/c2121d13d89fb5e807a51caa949591fc11ba8a26/src/markerlayout.ts#L15)

##### Index

### Properties

[features](#features) [id](#id) [internalElementSize](#internalelementsize) [position](#position) [size](#size)

## Properties

### features[](#features)

features: MapGeoJSONFeature\[\]

The feature represented by the marker

-   Defined in [markerlayout.ts:34](https://github.com/maptiler/maptiler-marker-layout/blob/c2121d13d89fb5e807a51caa949591fc11ba8a26/src/markerlayout.ts#L34)

### id[](#id)

id: number

Unique ID of a marker, most likely the ID of a geojson feature (from a vector tile)

-   Defined in [markerlayout.ts:19](https://github.com/maptiler/maptiler-marker-layout/blob/c2121d13d89fb5e807a51caa949591fc11ba8a26/src/markerlayout.ts#L19)

### internalElementSize[](#internalelementsize)

internalElementSize: \[number, number\]

Size of each internal elements (useful for when a marker contain information about multiple feature)

-   Defined in [markerlayout.ts:39](https://github.com/maptiler/maptiler-marker-layout/blob/c2121d13d89fb5e807a51caa949591fc11ba8a26/src/markerlayout.ts#L39)

### position[](#position)

position: \[number, number\]

Position in screenspace of the top-left corner \[x, y\]

-   Defined in [markerlayout.ts:24](https://github.com/maptiler/maptiler-marker-layout/blob/c2121d13d89fb5e807a51caa949591fc11ba8a26/src/markerlayout.ts#L24)

### size[](#size)

size: \[number, number\]

Size in screen space \[width, height\]

-   Defined in [markerlayout.ts:29](https://github.com/maptiler/maptiler-marker-layout/blob/c2121d13d89fb5e807a51caa949591fc11ba8a26/src/markerlayout.ts#L29)
