Resizing a leaflet map on container resize

后端 未结 6 892
渐次进展
渐次进展 2020-12-08 02:30

I have a

containing a leaflet map. Upon certain events the height of the
will be altered. I\'d like for the map to resize t
6条回答
  •  醉酒成梦
    2020-12-08 02:54

    After resize, use this

    map.invalidateSize()
    

    https://github.com/Leaflet/Leaflet/issues/690

提交回复
热议问题