ActiveReports 8 > ActiveReports User Guide > Samples and Walkthroughs > Samples > Page Report > CPL Samples > API > Custom Tile Provider |
The CustomTileProvider sample demonstrates how to create a custom tile provider using IMapTileProvider and IMapTile interface and configure it in a Map Control which is placed on a CPL report. This sample makes use of 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.
Sample Location
Visual Basic.NET
<User Folder>\ComponentOne Samples\ActiveReports 8\Page Reports\CPL\API\VB.NET\CustomTileProvider
C#
<User Folder>\ComponentOne Samples\ActiveReports 8\Page Reports\CPL\API\C#\CustomTileProvider
Runtime Features
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 - Generate a Bing Map Key. |
Project Details
CustomTileProviders folder
This folder contain files that are used in the CustomTileProvider project.
CloudMadeTileProvider.cs
GoogleMapsTileProvider.cs
MapQuestTileProvider.cs
MapTile.cs
OpenStreetMapTileProvider.cs
WebRequestHelper.cs
TileProviderEndUserDesigner folder
This folder contain files that are used in the TileProviderEndUserDesigner project.
CustomTileProvider.rdlx
This report contains the Map control that visualizes the oil production in different parts of the world on a virtual earth background. The map control uses the color rule set on a polygon layer to differentiate parts of world as per their oil production capacity. These colors are defined using a color rule which is described in the legend at runtime. The report gets the data from Factbook.rdsx shared data source.
DesignerForm.cs
GrapeCity.ActiveReports.config
HelperForm.cs