Guest User

Untitled

a guest
Apr 23rd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. initDrawEvent() {
  2. var draw;
  3. var source = new VectorSource({ wrapX: false });
  4.  
  5. var vector = new VectorLayer({
  6. source: source
  7. });
  8.  
  9. this.map.addLayer(vector);
  10. draw = new Draw({
  11. source: source,
  12. type: "Polygon"
  13. });
  14. this.map.addInteraction(draw);
  15. },
Add Comment
Please, Sign In to add comment