Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
XamGeographicMap does not display map data
posted

Hi,

I am attempting to use a XamGeographicMap to display OpenStreetMaps imagery, but no map data is displayed, only whatever background color is behind the map. In the main application, I have a custom control based on XamGeographicMap, and a couple GeographicShapeSeries. The Series display just fine, and zoom/pan function as well. In order to avoid any funny business with visibility or styling or anything like that, I did a test in a separate application containing just the basic setup found on the help pages (Adding XamGeographicMap to a Page and Using Geographic Imagery), and got the same results, code and results are below. This did show that 8 System.Net.WebExceptions were being thrown (they were lost in the other output of the main application), each of them stating "The remote server returned an error: (429) Too Many Requests". Any thoughts on causes and/or fixes?

I am using version 18.1

Thanks in advance.

MainWindow.xaml

 

<Window x:Class="GeographicMapTest.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:ig="http://schemas.infragistics.com/xaml"
        xmlns:local="clr-namespace:GeographicMapTest"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <ig:XamGeographicMap x:Name="GeoMap">
            <ig:XamGeographicMap.BackgroundContent>
                <ig:OpenStreetMapImagery />
            </ig:XamGeographicMap.BackgroundContent>
        </ig:XamGeographicMap>
    </Grid>
</Window>

MainWindow.xaml.cs

using System.Windows;

namespace GeographicMapTest
{
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }
    }
}

Resulting window

  • 1560
    Offline posted
    Hello,

    I noticed that there is a forum thread regarding the same query, where I have already provided an answer. Please have a look at this thread and let me know if you have any additional questions.
    Thank you for using Infragistics components.

    Sincerely,
    Teodosia Hristodorova
    Associate Software Developer