Skip to content

Render world copies

Replicates the MapLibre example Render world copies.

Pan west or east — there is exactly one world
render-world-copies.yaml
# yaml-language-server: $schema=https://docs.maplibre-yaml.org/schema/latest/map.schema.json
# Gallery twin of https://maplibre.org/maplibre-gl-js/docs/examples/render-world-copies/
# Pan east or west: with renderWorldCopies off there is exactly one world.
type: map
id: render-world-copies
config:
center: [0, 20]
zoom: 1
renderWorldCopies: false
mapStyle: "https://demotiles.maplibre.org/style.json"
  • config.renderWorldCopies: false renders a single world instead of tiling copies across the antimeridian.