apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

Added provider_key to google maps #194

Closed ryanjones closed 12 years ago

ryanjones commented 12 years ago

Some people need to be able to add the google maps api key for either business (have to include an api key in your requests) or tracking purposes (statistics available via google api located here: https://code.google.com/apis/console/b/0/). I'm in the latter category.

Another person who had a similar issue: http://stackoverflow.com/questions/10092881/does-the-gmaps4rails-gem-for-rails-3-1-allow-use-of-a-google-maps-api-key

By default the gem is using google maps, so any key provided will be put against the google maps api. If no key is provided we stick with just a blank &key=

apneadiving commented 12 years ago

Thanks for the idea and the code. I'm in the middle of refactoring so I won't merge very soon but I will merge!