Creating a basic google map with goomps

  1. Get your Google maps API key at http://code.google.com/apis/maps/signup.html
  2. Download the goomps package
  3. 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.

Also available in: HTML TXT