---
title: "MTVectorTileSource.setURL | Mobile sdk | Mobile sdk android | Android"
description: "setURL"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# MTVectorTileSource.setURL

fun [setURL](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.style.source/-m-t-vector-tile-source/set-u-r-l/)(url: [URL](https://developer.android.com/reference/kotlin/java/net/URL.html), mapViewController: [MTMapViewController](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-m-t-map-view-controller/))

Sets the url of the source.

Used for updating the source data.

#### Parameters

url

url to Vector Tile resource.

mapViewController

MTMapViewController which holds the source.
