I have a list of elements. I'm trying to create a map layer with elements which are binded that list. In the code below there is a mapLayer called "EndpointsIcon Layer" and the datasource is binded to the list. I'm using dataMapping to place icons on the map according to the location of each element in the list. Unfortunately it doesn't work. When running the program i can see the map but not the icons.
Does anyone know what can cause the problem?
<igMap:XamMap x:Name="theMap" Margin="5" Background="Transparent" ViewportBackground="Transparent">
<igMap:XamMap.Layers>
for layers added at runtime, the MapLayer.Import() method must be invoked. if you want to fit the window to the new bounds of the layer, XamMap.WindowFit() must be invoked.
does this solve the problem?
i see from your other thread what's going on - you are trying to use the DataMapping to set the SymbolOrigin of each element.
i'm not sure if this is possible. i will look into it further and get back to you.