Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

253
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda