ActiveReports 18 .NET Edition
In This Topic
    Map Related Configuration
    In This Topic

    The Map report item allows configuring built-in tile providers and extensions with custom report items.

    In general, external providers have a limited support of resources. They require an external key for unlimited access. ActiveReports allows configuring such keys:

    The example of the configuration file.

    XML code. Add to the configuration file
    Copy Code
    <?xml version="1.0" encoding="utf-8" ?>
    <Configuration>
    <Extensions>
    <MapTileProviders>
    <MapTileProvider Name="MapQuest" DisplayName="MapQuest Tyles">
    <Settings>
    <add key="ApiKey" value="Fmjtd%7Cluur21ua2l%2C2x%3Do5-90t5h6" />
    <add key="Timeout" value="5000" />
    </Settings>
    </MapTileProvider>
    <MapTileProvider Name="Google" DisplayName="Google Tiles">
    <Settings>
    <add key="ApiKey" value="AIzaSyBdJ88HN7LTGkHHK5whfaVv8a5ozlx2E_k" />
    <add key="Timeout" value="5000" />
    </Settings>
    </MapTileProvider>
    <MapTileProvider Name="Bing" DisplayName="Bing Tiles" >
    <Settings>
    <add key="ApiKey" value="Al3SxHf0LOva-5GI5fOajO0LCuKjYKLarjWQFcdGiKfaJNRrE6SBbH9o3-HJDOX7" />
    <add key="Timeout" value="5000" />
    </Settings>
    </MapTileProvider>
    </MapTileProviders>
    </Extensions>
    </Configuration>

    You can also implement your own tile provider and register it in ActiveReports as follows:

    XML code. Add to the configuration file
    Copy Code
    <?xml version="1.0" encoding="utf-8" ?>
    <Configuration>
    <Extensions>
    <MapTileProviders>
    <MapTileProvider Name="MapQuest-Sample" DisplayName="MapQuest-Sample" Type="GrapeCity.ActiveReports.Samples.CustomTileProviders.MapQuestTileProvider, CustomTileProviders, Version=1.0.0.0">
    <Settings>
    <add key="ApiKey" value="Fmjtd%7Cluur21ua2l%2C2x%3Do5-90t5h6" />
    <add key="Timeout" value="3000" />
    </Settings>
    </MapTileProvider>
    </MapTileProviders>
    </Extensions>
    </Configuration>

      See the Custom Tile Provider sample.