src/gm3/actions/mapSource.js
/** Convert all the <params> of a <map-source> into an object.
 *
 *  @param msXml The MapSource XML
 *
 *  @returns Object containing the params
 */
Convert all the  of a  into an object.
@param msXml The MapSource XML

@returns Object containing the params
Convert all the of a into an object . @param msXml The MapSource XML @returns Object containing the params
function parseParams(msXml) {
    const params_obj = {};
    const params = msXml.getElementsByTagName('param');
    for(let i = 0, ii = params.length; i < ii; i++) {
        const param = params[i];
        params_obj[param.getAttribute('name')] = param.getAttribute('value');
    }
    return params_obj;
}
function parseParams ( msXml ) { const params_obj = { } ; const params = msXml . getElementsByTagName ( 'param' ) ; for ( let i = 0 , ii = params . length ; i < ii ; i ++ ) { const param = params [ i ] ; params_obj [ param . getAttribute ( 'name' ) ] = param . getAttribute ( 'value' ) ; } return params_obj ; }
Convert all the <params> of a <map-source> into an object.
Convert all the <params > of a <map - source > into an object .