Creating a basic google map with goomps
- Get your Google maps API key at http://code.google.com/apis/maps/signup.html
- Download the goomps package
- create a php file with the following content:
1 include_once("lib/class.goomps.php");
2 $goomps = new goomps(); // instantiate new goomps object
3 $goomps->map->set_apiKey("yourApiKey")
4 echo $goomps->create(); // create map
5 The above code generates a google map with default settings.