Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview selected route in WhatsApp, Telegram, etc. instead of static map image #96

Open
emer7 opened this issue May 9, 2023 · 1 comment
Labels

Comments

@emer7
Copy link

emer7 commented May 9, 2023

Current Behaviour

Currently when sharing a busrouter.sg link (e.g. https://busrouter.sg/#/services/168~858~969) in WhatsApp and Telegram, a link preview will be generated, displaying a static image of busrouter.sg map

Telegram

image

WhatsApp

image

Intended Behaviour

It would be good if preview of the selected route can be generated instead

@emer7
Copy link
Author

emer7 commented May 9, 2023

Maybe can be implemented by dynamically changing tag for each selected route link
reference

Image perhaps in form of dataUrl of MapBox's map canvas map.getCanvas().toDataURL()
reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants