fetch more variables from url. updated example to switch between layers