fix flickering on making the map small
Merge pull request #1 from mathisonian/master

fix map flickering problem when making it small