GetFeatureInfo multiLayer from WMS

I'm working with mapserver and i want to get the feature info from many layers but the WebMapServiceImageryProvider just allow the info from one layer through the ImageryLayerFeatureInfo Object, i want to extend the WebMapServiceImageryProvider and add the method getJsonToMultiLayerFeatureInfo and create the ImageryMultiLayerFeatureInfo to show the info from diferent layers with tables in panels. is it the right way? or is there a easiest way? thanks.

Cesium support this (layer=tungurahuacantones):

   new Cesium.WebMapServiceImageryProvider({
      url : ‘http://mapas.tungurahua.gob.ec/base’,
      layers : ‘tungurahuacantones’,
      parameters : {
          transparent:true,
          format : ‘image/png’,
      },
      getFeatureInfoParameters:{
        info_format:“application/geojson”
      },
      getFeatureInfoAsXml:false,
      getFeatureInfoAsGeoJson:true,
  });

I want to enable the support for this(layer=tungurahuacantones,poblados,Rios):

new Cesium.WebMapServiceImageryProvider({
      url : ‘http://mapas.tungurahua.gob.ec/base’,
      layers : ‘tungurahuacantones,poblados,Rios’,
      parameters : {
          transparent:true,
          format : ‘image/png’,
      },
      getFeatureInfoParameters:{
        info_format:“application/geojson”
      },
      getFeatureInfoAsXml:false,
      getFeatureInfoAsGeoJson:true,
  });

PD: sorry for my poor English XD.

As I understand it, the WMS GetFeatureInfo interface (unlike GetMap) doesn’t allow multiple layers to be specified. So WMSImageryProvider would have to support this manually by doing multiple GetFeatureInfo requests. I’d welcome a pull request for this if you implement it.

If you’re using the Viewer widget’s built-in feature info popup, be aware that it doesn’t support displaying details of multiple features.

Kevin

hi and thank you for your answer,
Yes i'll work over GetFeatureInfo but by doing just one request and add tabs in the infobox to support multiple features. i'll be glad to share my implementation.