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.
Map: https://your-site.example/map
“Bike lanes vanish when I zoom past 15 on the bridge.”
What arrives in your team inbox. Plain text, one PNG.
Set it up on one map
-
Run the Feedback Pin service
Use Node.js 22 or later and run
npm startbehind HTTPS. The service sends reports through your existing SMTP relay over TLS. One service instance serves one map.Setting What it is Example ALLOWED_ORIGINThe one site origin allowed to send reports https://your-site.example MAP_URLThe HTTPS page your map lives on, no query or #fragment https://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 PLAIN Set both if required Visitors can't change any of these. Addresses, subject and map URL are fixed on the server.
-
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> -
Add the control to your map
Call this from your map code after the control script loads. Use your service's HTTPS URL.
JavaScriptmap.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. -
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
- Nothing until Send. Opening the dialog captures the map in the visitor's browser only.
- On Send: the description, the PNG and seven view numbers (longitude, latitude, zoom, bearing, pitch, width, height) go to your Feedback Pin service, then to your inbox. The service also receives the origin and standard connection metadata, including the IP address.
- Never: cookies, browser storage or the address of the page the visitor is on. There are no visitor name or email fields.
- Kept: the service processes reports in memory and keeps no report history. Your mail relay and inbox handle the delivered email.
Planned price: $12 a month per live map. Pilot maps are set up by hand.