react-rails icon indicating copy to clipboard operation
react-rails copied to clipboard

Best way to integrate Google Maps or any other library

Open dikey94 opened this issue 9 years ago • 3 comments

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.

dikey94 avatar Jun 06 '17 16:06 dikey94

anyone?

dikey94 avatar Jun 07 '17 15:06 dikey94

@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.

tarla avatar Jun 19 '17 09:06 tarla

Thanks @tarla 👍

BookOfGreg avatar Nov 13 '17 21:11 BookOfGreg