All docs
V20.1
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.

VectorTileDataProviderBase Class

The base class for vector tile data providers.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v20.1.dll

Declaration

public abstract class VectorTileDataProviderBase :
    ImageTileDataProvider,
    IVectorTileStreamProvider
Public MustInherit Class VectorTileDataProviderBase
    Inherits ImageTileDataProvider
    Implements IVectorTileStreamProvider

Remarks

Follow the steps below to implement a provider that loads tiles from a custom source.

  • Create a provider class that implements VectorTileDataProviderBase.
  • Implement the VectorTileDataProviderBase.GetStream method so that it returns a tile as a sequence of bytes for specific coordinates in the tile grid at the specified zoom level.
  • Assign the provider to the ImageLayer.DataProvider property.

    using DevExpress.XtraMap;
    using System;
    using System.IO;
    using System.Windows.Forms;
    //...
    private void Form1_Load(object sender, EventArgs e) {
        ImageLayer layer = new ImageLayer();
        VectorTileProvider dataProvider = new VectorTileProvider();
        layer.DataProvider = dataProvider;
        mapControl1.Layers.Add(layer);
    }
    public class VectorTileProvider : VectorTileDataProviderBase {
        public override Stream GetStream(long x, long y, long level) {
            // Your implementation here.
        }
    }
    
See Also