Google maps integration with codeigniter
Today I will explain, Google maps integration with codeigniter using Google maps library.
Now I had taken a open source Google maps library and placed it under codeigniter library folder and also added jsmin.php this library accepts a string as input and returns another string as output.
Now I will create a view file as maps.php which will display the Google maps.
For now I will show a small example to use googlemaps.php library to add marker to location.
Here in the above code I am sending location name to the controller function google().
Now we will use these lacation name and passed it into library function initialize()
To configure google map.
Here I also used library function add_ marker() to create marker in the Google maps.