Google Maps setMapType problem

Calling map.setMapType(GPHYSICALMAP) wasn’t doing anything. After a half hour of Googling, I ran across something: setMapType must be called after setCenter. It was some offhand comment in some mailing list I’ve since lost the link to.

I’m sure this fact is somewhere in the Google Maps API documentation, but I couldn’t find it.

Leave your thoughts
  • You can use some HTML in your comment.
  • Your comment may not display immediately due to spam filtering. Please wait for moderation.