Feedback Pin
MapLibre GL JS control

Bug reports with the map in them

Add one button to your map. When a visitor on a phone sees tiles missing, labels overlapping or a blank canvas, they tap it, describe the problem, and your team gets an email with the exact frame they saw and the camera that drew it.

What arrives in your team inbox. Plain text, one PNG.

Set it up on one map

  1. Run the Feedback Pin service

    Use Node.js 22 or later and run npm start behind HTTPS. The service sends reports through your existing SMTP relay over TLS. One service instance serves one map.

    SettingWhat it isExample
    ALLOWED_ORIGINThe one site origin allowed to send reportshttps://your-site.example
    MAP_URLThe HTTPS page your map lives on, no query or #fragmenthttps://your-site.example/map
    MAIL_FROMSender address on every report[email protected]
    MAIL_TOYour team inbox[email protected]
    SMTP_HOST, SMTP_PORTYour relay. Implicit TLS is required.smtp.your-mail.example, 465
    SMTP_USER, SMTP_PASSYour relay credentials if it requires AUTH PLAINSet both if required

    Visitors can't change any of these. Addresses, subject and map URL are fixed on the server.

  2. Add the control files to your site

    Download feedback-pin.css and feedback-pin.js. Host them yourself next to your map code. The control loads nothing from anywhere else before Send.

    HTML
    <link rel="stylesheet" href="/feedback-pin.css">
    <script defer src="/feedback-pin.js"></script>

  3. Add the control to your map

    Call this from your map code after the control script loads. Use your service's HTTPS URL.

    JavaScript
    map.addControl(new FeedbackPin({
      endpoint: 'https://feedback.your-site.example/api/report'
    }), 'bottom-right');

    Your map does not need preserveDrawingBuffer. The control asks for one fresh frame when the button is tapped.

  4. Test it on a phone

    Open your map on iOS Safari and Android Chrome, tap the report button, send a test, and check the email arrives with the picture.

What's sent, and when

Planned price: $12 a month per live map. Pilot maps are set up by hand.