advanced-chat / vue-advanced-chat

A beautiful chat rooms web component compatible with all Javascript frameworks
https://advanced-chat.github.io/vue-advanced-chat/
MIT License
1.7k stars 465 forks source link

Maps location message #387

Open iuryLandin opened 1 year ago

iuryLandin commented 1 year ago

I would like a type of message, location on the map, where it would be possible to pass the latitude and longitude and return an image with a link to google maps.

Like this -> https://i.stack.imgur.com/E7vlv.png


Suggestions

The following has an API to generate a static image of the map according to the coordinates.

https://maps.geoapify.com/v1/staticmap?style=osm-carto&width=600&height=400&center=lonlat:{LONGITUDE},{LATITUDE}&zoom=14&apiKey={{API_KEY}}

In this other link it is possible to access google maps through the coordinates

https://maps.google.com/maps?q={LATITUDE}%2C{LONGITUDE}&z=17&hl=pt-BR

Does anyone know if it is possible to use this, or do I need to wait for a new version of the component?

antoine92190 commented 1 year ago

That's a good idea. Will add this feature in the future

aldoprogra commented 1 month ago

Is this done? @iuryLandin @antoine92190