A Tile layer displays the virtual earth tile background on the map.
Use the following steps for creating a basic map using the Tile layer. These steps assume that you have added a page layout template to your report and have a data connection in place. See Data Binding in Page/RDLX Reports for more information.
Script
Paste inside the <Configuration></Configuration> tags. |
Copy Code
|
---|---|
<MapTileServerConfiguration> <Timeout>5</Timeout> <AppID>"Your Application Key"</AppID> </MapTileServerConfiguration> |
Note: After obtaining the key, add the following script in the ActiveReports.config file to configure embedded Google tile provider with ApiKey.
Script
Paste inside the <Configuration></Configuration> tags. |
Copy Code
|
---|---|
<!-- Configure embedded Google tile provider with API Key --> <MapTileProvider Name="Google" DisplayName="Google" > <Settings> <add key="ApiKey" value="API Key" /> <add key="Timeout" value="5000" /> </Settings> </MapTileProvider> |
Script
Paste inside the <Configuration></Configuration> tags. |
Copy Code
|
---|---|
<!-- Configure embedded MapQuest tile provider with ApiKey --> <MapTileProvider Name="MapQuest" DisplayName="Map Quest Tiles Provider"> <Settings> <add key="ApiKey" value="API Key" /> <add key="Timeout" value="3000" /> </Settings> </MapTileProvider> |
Note: If you are using a proxy server connection to see the map tile images, you need to set credentials for the proxy server in the application config file for authentication. To use your default proxy server credentials, you can do the following:
For Visual Studio Designer (IDE)
Paste inside the <system.net></system.net> tags. |
Copy Code
|
---|---|
<defaultProxy useDefaultCredentials="true" /> |
For Visual Studio Application
Paste inside the <configuration></configuration> tags. |
Copy Code
|
---|---|
<system.net> |