src/translate.js
function getReferenceIndexedByCSS(ref) {
    var newRef = {};
    for (var symb in ref.symbolizers) {
        for (var property in ref.symbolizers[symb]) {
            newRef[ref.symbolizers[symb][property].css] = ref.symbolizers[symb][property];
        }
    }
    return newRef;
}
function getReferenceIndexedByCSS(ref) {
    var newRef = {};
    for (var symb in ref.symbolizers) {
        for (var property in ref.symbolizers[symb]) {
            newRef[ref.symbolizers[symb][property].css] = ref.symbolizers[symb][property];
        }
    }
    return newRef;
}
function getReferenceIndexedByCSS ( ref ) { var newRef = { } ; for ( var symb in ref . symbolizers ) { for ( var property in ref . symbolizers [ symb ] ) { newRef [ ref . symbolizers [ symb ] [ property ] . css ] = ref . symbolizers [ symb ] [ property ] ; } } return newRef ; }
getReferenceIndexedByCSS returns a reference based on ref indexed by the CSS property name instead of the reference original property name it does a shallow copy of each property, therefore, it's possible to change the returned reference by changing the original one, don't do it
getReferenceIndexedByCSS returns a reference based on ref indexed by the CSS property name instead of the reference original property name it does a shallow copy of each property therefore it s possible to change the returned reference by changing the original one don t do it