Hai infragistics team,
Am using XamGeographicMap control in that I have to implement one requirement like user able to set the default location I have done that but on top of that I need another requirement like whenever the map get loads it will automatically zoom to the default location please reply as soon as possible am waiting for your reply
Thanks,
Gowthaman
Hello Gowthaman,
Thank you for your post. I have been looking into your question and have created a small sample application for you. In the sample application I have a method called ZoomMapToLocation. In this method I create a new Rectangle, then I get this rectangle and use it in the GetZoomFromGeographis method. More about this method you can find on the following link from our documentation: http://help.infragistics.com/Help/Doc/WPF/2013.2/CLR4.0/html/InfragisticsWPF4.Controls.Maps.XamGeographicMap.v13.2~Infragistics.Controls.Maps.XamGeographicMap~GetZoomFromGeographic(Rect).html.
After this I set the zoomed rectangle as a WindowRect for the XamGeographicMap.
More about this solution you can find on the following link from our forum: http://es.infragistics.com/community/forums/t/69311.aspx.
Please find the attached sample application and feel free to let me know if you have any further questions on this matter.
I am just checking if you have any further questions on this matter. Please do not hesitate to let me know if you have any further questions on this matter.
It has been a while, since your post. I have been looking into your issue and it seems that I am missing something from your scenario. Would you please modify the sample application -”GeagraphicMap_Zoom”, that I have attached in one of my previous posts with the functionality you are using.
This would help me further research your issue and provide you with further information. Looking forward to hearing from you.
Hai Gergana,
Thanks for your quick response in this.
First am sorry for my very late reply in this I was busy with some other work that’s why I can’t catch up you
I was checked your attachment it’s working fine but you hardcoded longitude and latitude instated of that I have get those from my default location I have a source for Gegraphicsymbolseries in that I have one default location from that I have to get longitude and latitude.
Thank you,
Gowthaman.