src/js/map/BaseMap.js
//verifies the layer is of the passed in type
verifies the layer is of the passed in type
verifies the layer is of the passed in type
function _assertLayerIsType(layer, type){
        if(layer.layerType() === undefined){
            console.error("Must set a layerType for the added layer!");
            return false;  
        }
        if(layer.layerType() !== type){
            console.error("'"+layer.layerType()+"' incorrect, expected "+type+"!");
            return false;
        }
        return true;
    }
function _assertLayerIsType ( layer , type ) { if ( layer . layerType ( ) === undefined ) { console . error ( "Must set a layerType for the added layer!" ) ; return false ; } if ( layer . layerType ( ) !== type ) { console . error ( "'" + layer . layerType ( ) + "' incorrect, expected " + type + "!" ) ; return false ; } return true ; }
verifies the layer is of the passed in type
verifies the layer is of the passed in type