heigeo / leaflet.wms

A Leaflet plugin for working with Web Map services, providing: single-tile/untiled/nontiled layers, shared WMS sources, and GetFeatureInfo-powered identify.
http://heigeo.github.io/leaflet.wms/
MIT License
244 stars 135 forks source link

tiled layer do not display #56

Closed dfy167 closed 6 years ago

dfy167 commented 6 years ago
var options = {
        transparent: true,
        format: 'image/png'
      }
 var source = window.L.WMS.source(
        'http://e/geoserver/FAST/wms',
        options
      )
      source.addSubLayer('layer')

works fine. but var options = { transparent: true, format: 'image/png', tiled:true } the tile is 0*256 and not show leaflet 1.3 ,chrome latest

apdevelop commented 6 years ago

Did you compare URLs of requests to WMS in these two cases ? Just checked, works normal with my own WMS service, sending several requests with &tiled=true&width=256&height=256 instead of single one.

dfy167 commented 6 years ago

with some test. it is ok. i used a css framwork to set img's max-width:100%

fix by add

.leaflet-container img {
  max-width: none;
}