mapboxmapbox-gl-jsmapbox-gl

How to prevent map repetition at low zoom levels in MapBox JS library?


I am developing an interactive map with markers on it. However, I am facing an issue where at high zoom-out levels, the map starts repeating itself, causing my markers to duplicate due to repeated coordinates. Additionally, having multiple repeated maps on a wide screen looks unappealing.

Is there a way in the MapBox JS library to disable map repetition or perhaps replace the repeated map with an infinite ocean?


Solution

  • I'm not aware of any way to achieve that.