ActiveReports 18 .NET Edition
Samples / Samples / Advanced / Page and RDLX Reports / Custom Tile Provider
In This Topic
    Custom Tile Provider
    In This Topic

    The CustomTileProvider sample demonstrates how to create a custom tile provider using IMapTileProvider and IMapTile interfaces and configure it in a Map Control which is placed on a RDLX report. This sample uses two projects - CustomTileProviders and TileProviderEndUserDesigner in a single Visual Studio solution. The CustomTileProviders project contains the tile server configurations for the tile providers, whereas the TileProviderEndUserDesigner project references the created CustomTileProviders project assemblies.

    Note: CustomTileProvider is for use with the Professional Edition license only. An evaluation message is rendered when used with the Standard Edition license.

    Custom Tile Provider

    Sample Location

    Visual Basic.NET

    https://github.com/activereports/Samples18/tree/main/Advanced/PageAndRDLX/CustomTileProvider/VB.NET

    C#

    https://github.com/activereports/Samples18/tree/main/Advanced/PageAndRDLX/CustomTileProvider/C#

    Details

    When you run this sample, the ActiveReports End User Designer appears with an overlaying Help-Creating a Custom Tile Provider dialog. This dialog gives you step-by-step instructions to create a new tile provider for a Map control with custom settings.
     The End User Designer displays a RDLX report containing a Map control with MapQuest set as the default tile provider. To change the existing tile provider, double-click on the Map control to display the existing tile layer and right click to select Edit. In the Map Tile Properties - General dialog that appears, click the Provider drop-down to select the tile provider you want to apply to the Map control. Go to the Preview tab to view the data in the selected tile provider. You can choose from the following tile provider options:

    Note: The Microsoft Bing Map server offers static map images. This requires an Application key for authentication. The default key provided by ActiveReports is for demo purpose and can not be used by 3rd party applications. In order to obtain a Bing Map Key, see HowTo - Create a Bing Map Account and HowTo - Get a Bing Map Key.

    The sample consists of two projects:

    CustomTileProviders: It contains following classes:

    TileProviderEndUserDesigner: It contains following files:

    See Also