react-rails
react-rails copied to clipboard
Best way to integrate Google Maps or any other library
Welcome everybody. I'd like to know what's the best way to use Google Maps or any other library like Leaflet maps. I've seen many tutorials they're not compatible with Rails. Thank you.
anyone?
@dikey94 quite delayed but there we go:
recently I had the same issue and the best way I found so far was by using the Google Maps JS library as a regular HTML import (e.g.: <script src=[...] />) in my main erb template.
after that, I was able to query the google services in the client side through the global window object.
Thanks @tarla 👍