renamed the resizeMap to triggerResize