After trying to implement the map in our application I have a couple of observations that I hope can help with this control going forward.
We are trying to display points on the map. Unfortunately points seem to be a complete after thought. With all of the documentation focused on polygons.
I have not been able to find any examples that show the map control displaying point data and there is no documentation showing how either. If I have missed where it exists please excuse me and can you send me a link to it.
What would be really handy would be examples and or documentation explaining the following.
1. How to add and style points.
2. How to bind and or select points from off the map and set the point to selected.
I am sure these things are possible as the control seems well thought out. But as it is a complex control when you are coming in blind it is very hard to work out.
thanks
Murray
Hi murraybryant
You may define your own Map's elements and add them to a layer in XamMap. Please refer to the following help articles: http://help.infragistics.com/Help/NetAdvantage/WPFDV/2010.2/CLR4.0/html/xamWebMap_About_Map_Elements.html and http://help.infragistics.com/Help/NetAdvantage/WPFDV/2010.2/CLR4.0/html/xamWebMap_Add_Symbol_Element.html
Hope this helps. Please let me know if you have further questions on this matter.
Best Regards
Ivan Kotev
Hi Ivan
Thanks for the reply, yes I had seen those articles.
They refer to creating a new mappoint and adding it to a map.what I have is a linked mapping to a sql datasource.
<igMap:MapLayer LayerName="POINTS" FontSize="12" > <igMap:MapLayer.Reader > <igMap:SqlShapeReader DataMapping="Data=Geom;Id=liEventKey;Name=liEventKey" > </igMap:SqlShapeReader> </igMap:MapLayer.Reader> </igMap:MapLayer>
And I would like to be able to set the symbol element on this collection of points.
Is it possible to do this in the xaml definition? As I can't seem to work it out
Thanks for your help
Regards
I worked it out.
<igMap:MapLayer LayerName="POINTS" FontSize="12" > <igMap:MapLayer.Elements> <igMap:SymbolElement SymbolType="Diamond"/> </igMap:MapLayer.Elements> <igMap:MapLayer.Reader > <igMap:SqlShapeReader DataMapping="Data=Geom;Id=liEventKey;Name=liEventKey" > </igMap:SqlShapeReader> </igMap:MapLayer.Reader> </igMap:MapLayer>
regards Murray