Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- initDrawEvent() {
- var draw;
- var source = new VectorSource({ wrapX: false });
- var vector = new VectorLayer({
- source: source
- });
- this.map.addLayer(vector);
- draw = new Draw({
- source: source,
- type: "Polygon"
- });
- this.map.addInteraction(draw);
- },
Add Comment
Please, Sign In to add comment