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 not displaying map
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

Parents
  • 1560
    Suggested Answer
    Offline posted
    Hello,

    Thank you for contacting Infragistics!
     
    I have been looking into your question and created a private case CAS-205919-N0F0G1 where I will provide you with more information on the matter. You should have received an email with that update.
     
    Sincerely,
    Teodosia Hristodorova
    Associate Software Developer
     
Reply Children