makeLayerConfig () {
        const cfg = super.makeLayerConfig();
        cfg.visibleLayers = this.config.layerEntries.map(le => le.id);

        const styles = this.config.layerEntries.map(e => e.currentStyle).join();

        cfg.customLayerParameters = {
            styles: styles
        };

        if (this.config.suppressGetCapabilities) {
            cfg.resourceInfo = {
                extent: new this._apiRef.Map.Extent(-141, 41, -52, 83.5, {wkid: 4326}), // TODO make this a parameter post-demo
                layerInfos: this.config.layerEntries
                    .map(le => new this._apiRef.layer.WMSLayerInfo({name: le.id, title: le.name || ''}))
            };
        }

        return cfg;
    }
/**
     * Creates an options object for the map API object
     *
     * @function makeLayerConfig
     * @returns {Object} an object with api options
     */
Creates an options object for the map API object
@function makeLayerConfig
@returns {Object} an object with api options
Creates an options object for the map API object @function makeLayerConfig @returns { Object } an object with api options
makeLayerConfig () {
        const cfg = super.makeLayerConfig();
        cfg.visibleLayers = this.config.layerEntries.map(le => le.id);
        const styles = this.config.layerEntries.map(e => e.currentStyle).join();
        cfg.customLayerParameters = {
            styles: styles
        };
        if (this.config.suppressGetCapabilities) {
            cfg.resourceInfo = {
                extent: new this._apiRef.Map.Extent(-141, 41, -52, 83.5, {wkid: 4326}), 
                layerInfos: this.config.layerEntries
                    .map(le => new this._apiRef.layer.WMSLayerInfo({name: le.id, title: le.name || ''}))
            };
        }
        return cfg;
    }
makeLayerConfig ( ) { const cfg = super . makeLayerConfig ( ) ; cfg . visibleLayers = this . config . layerEntries . map ( le => le . id ) ; const styles = this . config . layerEntries . map ( e => e . currentStyle ) . join ( ) ; cfg . customLayerParameters = { styles : styles } ; if ( this . config . suppressGetCapabilities ) { cfg . resourceInfo = { extent : new this . _apiRef . Map . Extent ( - 141 , 41 , - 52 , 83.5 , { wkid : 4326 } ) , layerInfos : this . config . layerEntries . map ( le => new this . _apiRef . layer . WMSLayerInfo ( { name : le . id , title : le . name || '' } ) ) } ; } return cfg ; }
Creates an options object for the map API object
 @function makeLayerConfig
 @returns {Object} an object with api options
Creates an options object for the map API object @function makeLayerConfig @returns { Object } an object with api options
// TODO make this a parameter post-demo