initialize window resize event only once
Merge pull request #202 from cgalvarino/map_resize_fix-r2

OOIION-1566: initialize window resize event only once