UNPKG

geotoolbox

Version:

geotoolbox is GIS javascript library. It is based on d3geo, topojson and geos-wasm.

12 lines (9 loc) 212 B
import initGeos from "geos-wasm"; let geosModule = null; export async function geosloader() { if (!geosModule) { geosModule = await initGeos(); console.log("GEOS loaded!"); } return geosModule; }