1
votes

I have a Map with a lot of markers, normally mapbox automatically hides some markers at a specific zoom level. Is it possible to disable that feature so all markers would be visible all the time?

Ill add a layer with:

                map.addLayer({
                    id: "regulators",
                    type: "symbol",
                    source: "regulators",
                    layout: {
                        "icon-image": "triangle-15",
                        "text-field": "{title}",
                        'text-allow-overlap': true,
                        "text-font": ["Open Sans Semibold", "Arial Unicode MS Bold"],
                        "text-size": 11,
                        "text-offset": [0, 0.6],
                        "text-anchor": "top"

                    },
                    "paint": {
                        "text-color": "#2ab27b"
                    }
                });

And already tried to set "text-allow-overlap" to true. But that is not working.

Is there any chance to solve that with the layer type "symbol" ?

1

1 Answers

2
votes

Yes. You just need to use icon-allow-overlap: true.

Documentation here.