Integrating Google Maps into our contact page
The Google Maps API provides developers with the flexibility to add interactive mapping functionality to any website. With our Contact page, we are implementing a map that provides a map marker pointing to a specific location based on the latitude and longitude that we will provide. As we implement this functionality, it is important to note that we will not be covering the in-depth details required to create a Google map or work with the developer API found at https://developers.google.com/maps/tutorials/fundamentals/adding-a-google-map.
Instead, we will take advantage of one of the many libraries that simplify the JavaScript knowledge required. For our next lesson, we have chosen to work with the jQuery-gMap
plugin, which can be found at https://github.com/marioestrada/jQuery-gMap.
In order to implement our map, we will need to follow a series of steps that involve making sure that Drupal can locate the jquery-gMap
library, create a library...