more explicit copyright in the top comment
change map.invalidateSize signature to accept options, close #1767, #1766