MbTilesDataProvider.FileUri Property
SECURITY NOTE
Downloading map data passed through URLs specified by the Suppress Control Requests to Download Data from External URLsFileUri
property may create security issues. Review the following help topic and learn how to spot, analyze, and prohibit unwanted download requests:
Gets or sets a URI of an .MbTiles file.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v24.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Uri | null | Specifies an MbTiles file’s URI. |
Remarks
The following example shows how to use an MbTilesDataProvider object to load vector tiles from a MbTiles database:
private void Form1_Load(object sender, EventArgs e) {
ImageLayer layer = new ImageLayer();
MbTilesDataProvider dataProvider = new MbTilesDataProvider();
dataProvider.FileUri = new Uri(@"D:\countries.mbtiles", UriKind.Absolute);
layer.DataProvider = dataProvider;
mapControl1.Layers.Add(layer);
}
See Also