From 9d94485b4825db9461e1bfc5d9e23bdd9e588a60 Mon Sep 17 00:00:00 2001 From: jipexu Date: Thu, 2 Dec 2021 18:11:53 +0100 Subject: [PATCH] Update examples/draw-and-modify-features.js Co-authored-by: Andreas Hocevar --- examples/draw-and-modify-features.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/draw-and-modify-features.js b/examples/draw-and-modify-features.js index bda1b99ba5..440029ef44 100644 --- a/examples/draw-and-modify-features.js +++ b/examples/draw-and-modify-features.js @@ -30,6 +30,8 @@ const vector = new VectorLayer({ }), }); +// Limit multi-world panning to one world east and west of the real world. +// Geometry coordinates have to be within that range. const extent = get('EPSG:3857').getExtent().slice(); extent[0] += extent[0]; extent[2] += extent[2];