--- layout: example.html title: Reusable Source shortdesc: Updating a tile source by changing the URL. docs: > You can call `source.setUrl()` to update the URL for a tile source. Note that when you change the URL for a tile source, existing tiles will not be replaced until new tiles are loaded. If you are interested instead in clearing currently rendered tiles, you can call the `source.refresh()` method. Alternatively, you can use two separate sources if you want to remove rendered tiles and start over loading new tiles. cloak: - key: pk.eyJ1IjoiYWhvY2V2YXIiLCJhIjoiY2t0cGdwMHVnMGdlbzMxbDhwazBic2xrNSJ9.WbcTL9uj8JPAsnT9mgb7oQ value: Your Mapbox access token from https://mapbox.com/ here ---