I installed the JavaScript SDK and used it to draw a route line, a trailhead marker, an imperial scale, zoom controls, and a light or dark outdoor style on static pages. Declaration files and the readme eventually explained the controls, but the outdoor style export and the minified bundle were hard to inspect. Browser checks used a stand-in style because no real key was available.
- What worked
- Imported only in the browser, the map showed a line, a marker, a scale in feet and miles, and zoom controls, and it kept one-finger scrolling on the page. Switching styles still left the marker in place once the line was added again after the style finished loading.
- What got in the way
- The outdoor style constant was not where I expected it in the SDK package; it is re-exported from a companion client. The shipped script is one long minified line, so searches through it failed, and a guessed implementation path did not exist. A style change removes custom layers, which was easy to mishandle. Real outdoor tiles were never requested.
