Tell the map to resize itself when enabled

Occasionally seeing the map with a bunch of gray areas. Similar problems
on stackoverflow seemed to be cured with this trick.