idaolson / gmaps-rails-example

Using Google Maps API (v3) with Rails (5.2). Examples of using Static API and Javascript API, how to place a marker and how to update the marker position when we change a form input value. And finally how to update the input value by dragging the marker. All of this without using any gems.

Home Page:https://medium.com/@pjbelo/using-google-maps-api-v3-with-rails-5-2-b066a4b2cf14

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using Google Maps API (v3) with Rails (5.2)

Step-by-Step Tutorial

intro image

In this tutorial we'll talk about how to use Google Maps API with Rails. We'll see some examples of using Static API and Javascript API, how to place a marker and how to update the marker position when we change a form input value. And finally how to update the input value by dragging the marker. All of this without using any gems.

Level: beginner

Pre requisites: basic knowledge of Rails and Javascript

Please visit the link to view tutorial on Medium:

https://medium.com/@pjbelo/using-google-maps-api-v3-with-rails-5-2-b066a4b2cf14

You can check the commit history for the different code versions.

To use this App you must setup your Google Maps API Key using rails credentials with the name: google_maps_api_key

Please feel free to contact. I'll be glad to help if I can :-)

Cheers,

Paulo

About

Using Google Maps API (v3) with Rails (5.2). Examples of using Static API and Javascript API, how to place a marker and how to update the marker position when we change a form input value. And finally how to update the input value by dragging the marker. All of this without using any gems.

https://medium.com/@pjbelo/using-google-maps-api-v3-with-rails-5-2-b066a4b2cf14


Languages

Language:Ruby 70.3%Language:HTML 17.6%Language:JavaScript 7.6%Language:CSS 4.4%