Leaflet renders maps from geoserver based on http GET. But when sending over big values via viewparams, the url gets cut off and the call fails.
Need to submit a big value via viewparams to a geoserver layer
http://osgeo-org.1560.x6.nabble.com/GETMAP-POST-WITH-CQL-FILTER-PARAMETER-td3805482.html The link above shows people have tried to tackle the issue, but it falls back to having to re-write leaflet entirely. How to make ol.source.ImageWMS send POST request This link above talks about a method of rewriting open layer, but not leaflet.
Attempt to load a huge WKT String into your cql_filter of the url to a geoserver get map call and you will understand my dilema.
So after researching, does anyone have a solution to solving this issue? Perhaps there is a part of leaflet.js that we can tweak to make it send post request over to geoserver instead.