DrawMap fixes, resource types refactored to match webgl types