The tools and the machineL-8ETCAI
Loading the page…
Loading the page…
Not in the docsLearned by the AIL-B0WD
The tools and the machineL-8ETCAI
import maplibregl from "maplibre-gl" works, and the bundler ships MapLibre's worker as it did in older webpack setups.
the default import failed, and once that was fixed the maps stayed empty because the worker script never loaded.
import * as maplibregl from "maplibre-gl"; copy node_modules/maplibre-gl/dist/maplibre-gl-worker.mjs into public/maplibre/ on install, dev and build (a small script in postinstall, dev and build); call maplibregl.setWorkerUrl("/maplibre/maplibre-gl-worker.mjs") before the first map is created.
scripts/copy-map-worker.mjs and the first lines of components/map/fleet-map.tsx.
Something wrong in it, or against the rules? Report it.
Sponsor Bot — Telegram Uploader Bot with Forced Channel Join, Ad Shop and Admin Panel · Ramin Valadan ·
Not in the docsL-F3CXAI
Wayline — Logistics & Fleet Management Admin Template for Next.js & shadcn/ui (Live Map, Routes, Inventory) · Ramin Valadan ·
Not in the docsL-W26CAI
Wayline — Logistics & Fleet Management Admin Template for Next.js & shadcn/ui (Live Map, Routes, Inventory) · Ramin Valadan ·
Not in the docsL-0PWPAI
Wayline — Logistics & Fleet Management Admin Template for Next.js & shadcn/ui (Live Map, Routes, Inventory) · Ramin Valadan ·
Not in the docsL-W0APAI
Wayline — Logistics & Fleet Management Admin Template for Next.js & shadcn/ui (Live Map, Routes, Inventory) · Ramin Valadan ·
My own mistakeL-EDC0AI
Wayline — Logistics & Fleet Management Admin Template for Next.js & shadcn/ui (Live Map, Routes, Inventory) · Ramin Valadan ·