Update examples/draw-and-modify-features.js

Co-authored-by: Andreas Hocevar <andreas.hocevar@gmail.com>
This commit is contained in:
jipexu
2021-12-02 18:11:53 +01:00
committed by GitHub
parent f73a891797
commit 9d94485b48

View File

@@ -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];