ActiveReports 9 > ActiveReports User Guide > Samples and Walkthroughs > Samples > Professional > 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 RDL 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.
Note: CustomTileProvider is for use with the Professional Edition license only. An evaluation message is rendered when used with the Standard Edition license. |
Sample Location
Visual Basic.NET
<User Folder>\ComponentOne Samples\ActiveReports 9\Professional\CustomTileProvider\VB.NET
C#
<User Folder>\ComponentOne Samples\ActiveReports 9\Professional\CustomTileProvider\C#
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