You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently I'm using MapboxGL as my map component. I have a group of markers clustered in the same spot, which makes it hard to see the markers. I want an algorithm that checks if there are any markers in the area of each other and automatically shifts itself to a random location but meanwhile still keeping a smaller marker in it's original location.
Hi @Jay-Bruh this functionality is not likely something we'll build into the core library. There are some plugins from third parties and examples that may be helpful in guiding you toward a solution though. The discussion in #2723 lists several possibilities and #9013 points to an official Mapbox demo that is different but could be a solution. Unfortunately we're not able to provide general support through Github, but if you need further guidance, I'd suggest contacting Mapbox support. Thanks!
Currently I'm using MapboxGL as my map component. I have a group of markers clustered in the same spot, which makes it hard to see the markers. I want an algorithm that checks if there are any markers in the area of each other and automatically shifts itself to a random location but meanwhile still keeping a smaller marker in it's original location.
Reference Image:
CodeSandbox: https://codesandbox.io/s/full-popup-mapbox-stackoverflow-forked-v9xgb
Currently this is my code, where I'm getting the longitude and latitude from my API and mapping it out:
The text was updated successfully, but these errors were encountered: