---
title: "CollisionBehaviour | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> 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.

# Variable CollisionBehaviour`Const`

CollisionBehaviour: {  
    ALWAYS\_SHOW: "always-show";  
    HIDE\_BY\_PRIORITY: "hide-by-priority";  
    MINIMIZE\_BY\_PRIORITY: "minimize-by-priority";  
} = ...

Behaviour when this marker spatially overlaps another.

#### Type Declaration

-   ##### `Readonly`ALWAYS\_SHOW: "always-show"
    
    No collision detection — marker is always shown.
    
-   ##### `Readonly`HIDE\_BY\_PRIORITY: "hide-by-priority"
    
    Marker is hidden when it collides with a higher-priority marker.
    
-   ##### `Readonly`MINIMIZE\_BY\_PRIORITY: "minimize-by-priority"
    
    Marker is minimised to a simple point/circle when colliding with a higher-priority marker.
