Remove tilelayer when it has an error