I'm trying to create a XamGeographicMap to show some data points. However, I'm getting all kinds of errors simply trying to use it as the sample. I can add an XamGeographicMap like this:
<ig:xamgeographicmap x:name="GeoMap">
But I get the following errors:
Error Property 'Content' does not support values of type 'XamGeographicMap'.
Error The tag 'XamGeographicMap.GeographicSymbolSeries' does not exist in XML namespace 'http://schemas.infragistics.com/xaml'.
However, it does run. But when I add anything (like a series) it fails again:
<ig:XamGeographicMap x:Name="GeoMap"> <ig:XamGeographicMap.Series> <ig:XamGeographicMap.GeographicSymbolSeries/> </ig:XamGeographicMap.Series> </ig:XamGeographicMap>
This time with the extra errors:
Error The member "Series" is not recognized or is not accessible.Error The attachable property 'Series' was not found in type 'XamGeographicMap'. Error The attachable property 'GeographicSymbolSeries' was not found in type 'XamGeographicMap'.
I'm referencing the libraries:
InfragisticsWPF4.Controls.Maps.XamGeographicMap.v13.2InfragisticsWPF4.DataVisualization.v13.2InfragisticsWPF4.v13.2
Hello Matthew,
It appears that you are missing a reference that is required to use the XamGeographicMap properly. I would recommend that you add a reference to InfragisticsWPF4.Controls.Charts.XamDataChart.v13.2 in order to resolve this issue.
A full list of the assemblies that are required for usage with specific controls can be found at the following webpage: http://help.infragistics.com/doc/WPF/2013.2/CLR4.0/?page=NetAdvantage_Assemblies.html.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate Developer
Thanks, that worked. I thought there must be a reference I was missing.
I'm still having trouble, for some reason the GeographicSymbolSeries just doesn't seem to be applied. I've set up a really simple series, pointing at some ViewModels I have:
<ig:XamGeographicMap x:Name="GeoMap"> <ig:XamGeographicMap.Series> <ig:GeographicSymbolSeries ItemsSource="{Binding WaypointViewModels}" LatitudeMemberPath="WaypointModel.Lat" LongitudeMemberPath="WaypointModel.Lon"> <ig:GeographicSymbolSeries.MarkerTemplate> <DataTemplate> <Ellipse Width="20" Height="20" Fill="Red"/> </DataTemplate> </ig:GeographicSymbolSeries.MarkerTemplate> </ig:GeographicSymbolSeries> </ig:XamGeographicMap.Series> </ig:XamGeographicMap>
But it doesn't appear in any form. When I put a breakpoint in the getter of the WaypointViewModels observable collection, it doesn't get called. There are also no binding errors, so I can assume it's finding WaypointViewModel or not even attempting to bind to it.