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

245
Views
How do I listen for an event when user finished drawing polygon?

I am looking to add a listener to fire when the user finished drawing the polygon via Google Maps' Drawing Manager. That is when the first point of the polygon intersepts with itself.

Does anyone have experience doing that?

Currently my drawing manager is set up the following way:

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

it's possible by using 'polygoncomplete' listener, like so:

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!