While not mentioned in the flatgeobuf-npm site, the official documentation of the package reveals a createLoader-method, that creates an ol-loader for a VectorSource while removing the need of reading the data in a GeoJSON-Format, as we do now.
I think using this exposed method might simplify the code as well as improve the performance by removing the extra step of the GeoJSON format.
While not mentioned in the
flatgeobuf
-npm site, the official documentation of the package reveals acreateLoader
-method, that creates anol-loader
for aVectorSource
while removing the need of reading the data in a GeoJSON-Format, as we do now.I think using this exposed method might simplify the code as well as improve the performance by removing the extra step of the GeoJSON format.