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

251
Views
Polygon boundary not removed after clear source: OPENLAYERS

I want to delete a polygon on a layer. It works on my localhost, but not on the production server. In production, after calling removeParcel the source gets clear and the feature on this source also been removed. But the polygon boundary is still visible on the map. And an unexpected side effect occurs on zooming in and out, the polygon boundary is not bound to latitude and longitude, instead it has the same height and width as the map viewport.

removeParcel() {
    const parcelLayer = map.getParcelLayer(true);
    if (parcelLayer) {
        parcelLayer.getSource().clear();
    }
}

This is before delete occur [zoom out1

zoom in

This is after delete occur zoom out

zoom in

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!