src/js/map/BaseMap.js
//verifies the parameter is a layer
verifies the parameter is a layer
verifies the parameter is a layer
function _assertIsLayer(layer){
        if(layer.constructor      !== Object  ||
           layer.__baseFactory__  === undefined ||
           layer.__baseFactory__  !== 'Layer' ){
            console.error("Argument must extend BaseLayer!");
            return false;
        }
        return true;
    }
function _assertIsLayer ( layer ) { if ( layer . constructor !== Object || layer . __baseFactory__ === undefined || layer . __baseFactory__ !== 'Layer' ) { console . error ( "Argument must extend BaseLayer!" ) ; return false ; } return true ; }
verifies the parameter is a layer
verifies the parameter is a layer