setRenderWorldCopies method

MapboxMap setRenderWorldCopies([
  1. bool? renderWorldCopies
])

Sets the state of renderWorldCopies.

@param {boolean} renderWorldCopies If true, multiple copies of the world will be rendered side by side beyond -180 and 180 degrees longitude. If set to false:

  • When the map is zoomed out far enough that a single representation of the world does not fill the map's entire container, there will be blank space beyond 180 and -180 degrees longitude.
  • Features that cross 180 and -180 degrees longitude will be cut in two (with one portion on the right edge of the map and the other on the left edge of the map) at every zoom level.

undefined is treated as true, null is treated as false. @returns {MapboxMap} this @example map.setRenderWorldCopies(true); @see Render world copies

Implementation

MapboxMap setRenderWorldCopies([bool? renderWorldCopies]) =>
    MapboxMap.fromJsObject(jsObject.setRenderWorldCopies(renderWorldCopies));