Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
map.invalidateSize() worked for me. I was having problems refreshing the tiles after I applied the style display: none; to the map element and then restoring it to display: block . According the documentation: "Checks if the map container size changed and updates the map if so".