brunob / leaflet.fullscreen

Leaflet.Control.FullScreen for Leaflet
https://brunob.github.io/leaflet.fullscreen/
MIT License
376 stars 107 forks source link

some tile do not show in chrome #61

Closed dfy167 closed 6 years ago

dfy167 commented 6 years ago

some tile do not show in chrome when in this env F11 to get chrome fullscreen click control button of this plu . and then some tile do not show. just use the demo in this site:http://brunob.github.io/leaflet.fullscreen/

brunob commented 6 years ago

click control button of this plu . and then some tile do not show.

can't understand what you're trying to say here :\

dfy167 commented 6 years ago

http://brunob.github.io/leaflet.fullscreen/ chrome latest leaflet 1.3

  1. open the demo
  2. F11 to use chrome function to get full screen.
  3. now ,to click the botton on the map to get map full screen
  4. then ,the map is fullscreen ,but the right side has a lot of blank.

leaflet 1.1 has no this problem . i fix it by this:

setTimeout(function () {
        map.invalidateSize()
      }, 10)

and when set 10 to 1,the right side has a lot of blank. after some test,i set it to 10 on my computer

brunob commented 6 years ago

Version 1.4.5 should fix this bug ;)