the recorder to drive. Defaults to the shared MaplibreRecorder instance, which is the one you normally attach.
Copies the reproduction page to the clipboard, ready to paste into JS Bin.
Saves the reproduction page to disk.
name of the downloaded file
the control, for chaining
Saves the raw recording to disk, for later inspection or re-export.
name of the downloaded file
the control, for chaining
Where MapLibre puts the control when no position is given.
Builds the panel. Called by map.addControl.
Optional_map: any
the map the control was added to
the control's element
Tears the panel down. Called by map.removeControl.
Optional_map: anyOpens the reproduction page in a new tab.
Opens the reproduction in CodePen, using its prefill API.
A standalone HTML page that makes the recorded calls.
Just the JavaScript of the reproduction, without the page around it.
Redraws the panel from the recorder's current state.
The record/export panel, as a MapLibre control.
It is the front end onto a Recorder, and the direction only goes one way: the control reaches into the engine through the same public API anyone else would use, follows its state through Recorder.onChange, and the engine knows nothing about it. Turning a recording into a page and putting that page somewhere - a file, the clipboard, a new tab, CodePen - lives here too, because it is all browser plumbing rather than recording.
Needs
dist/maplibregl-recorder.cssin the page.Example