Whatever documentation you're looking at is out of date. The correct way to generate a map from PHP is now:echo theme('gmap', array('#settings' => $mymap));