All docs
V20.2
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

UriBasedVectorTileDataProvider.TileUriTemplate Property

Gets or sets a URI template used to obtain tiles from a local folder path or tile server.

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v20.2.dll

Declaration

public string TileUriTemplate { get; set; }
Public Property TileUriTemplate As String

Property Value

Type Description
String

A string that specifies a URI template. The default URI template is https://insert_tile_server/{level}/{x}/{y}.pbf

Remarks

Use the following placeholders to specify the TileUriTemplate:

  • {x} - Replaces a non-negative integer that is an x-coordinate of a tile in the grid.
  • {y} - Replaces a non-negative integer that is a y-coordinate of a tile in the grid.
  • {level} - Replaces a positive integer that represents the zoom level.

For example, use the "D:\PbfFiles\{x}-{y}-{level}.pbf" pattern to load tiles from the files below:

Example

This example shows how to use the UriBasedVectorTileDataProvider to load vector tiles (in PBF format) from a local directory:

<dxm:MapControl>
    <dxm:ImageLayer>
        <dxm:UriBasedVectorTileDataProvider TileUriTemplate="D:\PbfFiles\{x}-{y}-{level}.pbf"/>
    </dxm:ImageLayer>
</dxm:MapControl>
See Also