openlayers / openlayers/openlayers
Style Array - Overlapping Marker Styles
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 12.6k
- Forks
- 3.2k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 21
Description
Hi,
currently I am styling my markers using a style array, containing two style objects (the marker itself and an icon).
Depending on the zoom level it happens, that my markers overlap on the map and when this happens, I get the problem as shown in the following screenshot:

The green marker sticks in between the white marker and the white marker's plane icon.
How can I avoid that another marker gets drawn in between the styles of a single marker? I assume that manually adjusting the z-layer for each style gets complicated, because it is a problem between different markers.
Any ideas?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report provides no source file, test, or entry point. Reproduce the overlapping two-style markers at different zoom levels using the style array described, then trace the marker rendering order. Done means styles belonging to one marker no longer have another marker rendered between them.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100