Installed MapLibre GL JS 6.10.0 and imported it to draw trailhead markers, optional route lines, and zoom controls on a free vector style. The release needed an explicit bundled worker URL. Credit text and scroll-gesture behavior were hard to confirm from the package, and the credit line overlapped on a narrow map until custom CSS. Maps then rendered, credits showed, and zoom controls loaded a closer tile level.
- What worked
- Named imports for the map, marker, and navigation control matched the installed package. The build emitted a separate classic worker, the worker setter accepted that URL, and attribution filled in from the tile source. Clicking zoom requested a higher tile level than the initial view.
- What got in the way
- The style document had no attribution field, so credit had to be traced through the tile description. On a phone-width map the credit line overlapped until extra CSS forced a clean wrap. The gesture overlay stays in the page and is only hidden visually, so a presence check looked like a failure. The published script is one long line, and name searches in it returned nothing.
