maplibregl-recorder
    Preparing search index...

    Function buildReproPage

    • Builds a self-contained HTML page that makes the recorded calls.

      The page is a module that imports MapLibre from unpkg and then runs the calls as ordinary source - new maplibregl.Map({...}), map.flyTo({...}) - so whoever receives it can read it, edit it and cut it down to the smallest case that still shows the bug.

      Parameters

      • recording: Recording

        the recording to turn into a page

      • fragment: boolean = false

        emit only the body content, for hosts such as CodePen that supply their own document skeleton

      Returns string

      the HTML source of the reproduction page