src/sources/MVTWorker.js
// Currently only mvtLayers with the same type in every feature are supported
Currently only mvtLayers with the same type in every feature are supported
Currently only mvtLayers with the same type in every feature are supported
_checkType (feature, expected) {
        const type = feature.type;
        const actual = MVT_TO_CARTO_TYPES[type];
        if (actual !== expected) {
            throw new Error(`MVT: mixed geometry types in the same layer. Layer has type: ${expected} but feature was ${actual}`);
        }
    }
_checkType ( feature , expected ) { const type = feature . type ; const actual = MVT_TO_CARTO_TYPES [ type ] ; if ( actual !== expected ) { throw new Error ( ` ${ expected } ${ actual } ` ) ; } }
Currently only mvtLayers with the same type in every feature are supported
Currently only mvtLayers with the same type in every feature are supported