LiveHelperChat / livehelperchat

Live Helper Chat - live support for your website. Featuring web and mobile apps, Voice & Video & ScreenShare. Supports Telegram, Twilio (whatsapp), Facebook messenger including building a bot.
http://livehelperchat.com
Apache License 2.0
1.95k stars 699 forks source link

Feature request: add support for OpenStreetMaps #2019

Open vitormfgoncalves opened 9 months ago

vitormfgoncalves commented 9 months ago

Hello. Would be great to have a choice between Google Maps and OpenStreetMaps.

I understand that companies should pay for the services they use, but sometimes the budget is a bit short.

OSM as far as I understand can be used commercially without problems.

remdex commented 9 months ago

That's a good suggestion, but I'm afraid without sponsorship you will have to wait long time as I'm just overloaded with paid support :D

comsyspro commented 7 months ago

can you give a hint which files are responsible for the google map. i would like to replace the code with something like this:

<div id="map_canvas"></div>

<!-- Leaflet JavaScript -->
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
<script>
    var map = L.map('map_canvas').setView([39.9625, -83.0061], 5);

    L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
        attribution: 'Map data &copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors'
    }).addTo(map);

    L.marker([39.9625, -83.0061]).addTo(map)
        .bindPopup('A marker here.')
        .openPopup();
</script>
remdex commented 7 months ago

Use github search

To compile JS follow https://doc.livehelperchat.com/docs/development/quick-guide

comsyspro commented 7 months ago

thank you. i've looked at it and it would take me probably days to replace it. as you have the overview of your code and you think this could be a better solution to use opensource map data of openstreet map you can do it probably in some hours instead of days. so i will wait as for me it would take to much time and it would also be better to have your code updated in the master github repository for easier update processing.