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

118
Views
How edit polygon from static coordinates Leaflet.js

Hell, I have static array I draw on map and I want to make it editable. could you help me with any idea?

there is may code

 var pol = [
             [ 46.655639, 24.804925 ],
             [ 46.655389, 24.804815 ],
             [ 46.655507, 24.804573 ],
             [ 46.655752, 24.804689 ],
             [46.655639, 24.804925 ]
          ];

 var poly = L.polygon(pol,{color: 'red'});

 poly.addTo(map);

 var getPolygonCenter = poly.getBounds().getCenter();

 getLocation = [getPolygonCenter.lat, getPolygonCenter.lng];
 map.setView(getLocation, defaultZoomLevel);
about 4 years ago · Juan Pablo Isaza
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!