Do you have any idea how to fix it?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
Indeed it was a tile problem, as said in the geoserver doc
Rendering transformations may not work correctly in tiled mode, unless they have been specifically written to accomodate it.
but setting tiled to false didn't work.
But I found this custom leaflet class which worked for me : http://bl.ocks.org/ismyrnow/5415445
In the case the code of the WMS class itself would be the problem, you can check this nice heatmap example by Patrick Wied to see if you find a relevant difference with your code: http://www.patrick-wied.at/static/heatmapjs/example-heatmap-leaflet.html