2010/8/2 Matt Chapman <matt@ninjitsuweb.com>
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));


Thanks Matt, that's the solution, but when I apply that, I get the message Javascript is required to draw the map. I can't solve that.