removed regex from url formation using template, uses string replace now. And improved the regex check in extracting tileIDs from a url based on matts suggestions
explicitly specifying depth comparison function (GL_LEQUAL)