Updating tilelayer code