Silviu Salajan
Joined 8/10/2017
Silviu Salajan said over 6 years ago on Plotting Points on a Map from Scratch :

It works on local environment but in production mode (heroku) don't.

Thank you for this tutorials!


Silviu Salajan said over 6 years ago on Plotting Points on a Map from Scratch :

I put this <script src="https://maps.googleapis.com/maps/api/js?key=$API_KEY&callback=initMap" async> </script> on recipes/map.html.erb and i removed all application.js code and meta tag with api key from layouts/application.html.erb because it dosen't work in production. Thanks!


Silviu Salajan said over 6 years ago on Plotting Points on a Map from Scratch :

Yes because of `` used on  $.getScript(`https://maps.googleapis.com/maps/api/js?key=${google_map}&callback=initMap`); :D