I've created a webmap viewer with Leaflet and used the plugin leaflet.wms to call the WMS GetFeatureInfo service to query a map layer and return information about the underlying features. My code is as follows
var source = L.WMS.source("http://xxxx/geoserver/wms",
{
"format": "image/png",
"transparent": "true",
"attribution": "© Instituto Geográfico Nacional de España",
"info_format": "text/html",
}
);
var lyrAtlas = source.getLayer("atlas:lista_reprod_iii");
It works fine, but the information to be returned is quite long and the displayed popup is too narrow, so the result is unmanageable. I want to set the width of the popup to something wider, but I haven't found any hint to obtain it. Is it possible to do so?
Edit
This is the only chunk of code of the plugin js file where the popup appears:
'showFeatureInfo': function(latlng, info) {
// Hook to handle displaying parsed AJAX response to the user
if (!this._map) {
return;
}
this._map.openPopup(info, latlng);
},