Looking Mapbox js alternative "icon-allow-overlap": true, "text-allow-overlap": false in react-map-gl #1392
Unanswered
singhamritpal49
asked this question in
Q&A
Replies: 1 comment 4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am having an issue with react-map-gl that is not displaying icons and text ( see attached images) properly (overlapping). I found some old code that I used in Mapbox js, which displayed everything correctly. Now I am using react but cannot find something useful.
map.addLayer({
"id": "markers",
"type": "symbol",
"source": "markers",
"layout": {
"icon-image": "{marker-symbol}",
"text-field": "{title}",
"icon-allow-overlap": true,
"text-allow-overlap": false,}
})
Beta Was this translation helpful? Give feedback.
All reactions