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

227
Vistas
Why openlayers WKT reader returns Feature<Geometry> and WKB reader returns FeatureLike

Ok so I am trying to transition from WKT to WKB being stored in the database. First step was to rewrite OL's reader from WKT to WKB.

What I noticed however is that WKB returns FeatureLike instead of Feature<Geometry> and I can't perform actions like feature.setId() or feature.setStyle().

const feature = new WKT().readFeature(props.wktGeometry);

feature.setId() // works
feature.setStyle() // works

into

const feature = new WKB().readFeature(props.wkbGeometry);

feature.setId() // doesn't work as it's 'FeatureLike'
feature.setStyle() // as above

Why is that happening and how to prevent it or how to properly convert FeatureLike to Feature<Geometry>?

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