Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

238
Views
¿Cómo escucho un evento cuando el usuario terminó de dibujar un polígono?

Estoy buscando agregar un oyente para disparar cuando el usuario termine de dibujar el polígono a través del Administrador de dibujos de Google Maps. Es entonces cuando el primer punto del polígono se interseca consigo mismo.

¿Alguien tiene experiencia haciendo eso?

Actualmente, mi administrador de dibujos está configurado de la siguiente manera:

 handleCreate() { const { google } = this.props; const { maps } = google; const drawingManager = new maps.drawing.DrawingManager({ drawingMode: google.maps.drawing.OverlayType.POLYGON, drawingControl: false, polygonOptions: { ...EDITABLE_YARD_BOUNDS_STYLE }, }); drawingManager.setMap(this.map); }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

es posible usando el oyente 'polygoncomplete', así:

 maps.event.addListener(drawingManager, 'polygoncomplete', function(polygon) { console.log("new polygon is", polygon); });
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!