replaced map destruction with map reinflation

This build provides a less invasive approach to handling conditions where the map height and width properties are reset to zero by jquery.