initialize window resize event only once
Merge pull request #201 from cgalvarino/map_resize_fix

OOIION-1566: initialize window resize event only once