Hello All,
I have an image file which can either be in a bitmap or vector format which I need to display, zoom using a window, pan, very much like the operations used in map operations. What would be the best control to use? xamGeographicMap or xamMap? Is there a simple example project for this?
Thanks.
Hello Ammar and thank you for posting!
I have been looking into your requirements and it seems that XamMap is the WPF control that provides most of the functionality you need (zooming, panning). You may refer to the following link for a sample application that shows how the map could be used displaying the seats in a hall: http://www.infragistics.com/samples/wpf/map/seat-chooser. The same sample is also available with the Samples Browser if you have it installed on your machine. Please note that the map controls are designed to show geospatial data and the data is loaded using a ShapeFiles. Please feel free to let me know if you have any other questions on the matter.
Hello Maria,
Thank you for your followup. I think them "Styling Map Navigation Pane" example in the link you provided is a good choice. Would you be able to provide a working VS WPF/C# solution for it that I can directly build?
Also, is there Infragistics zoom/pan controls for SVG/Bitmap images similar to ZoomPanel: https://visualstudiogallery.msdn.microsoft.com/16a15b2a-8f98-40ac-acdf-b12164630a6e?
Ammar,
The source code of the samples that are illustrated in the Samples Browser can be found on your local machine after installing the Samples Browser itself. The path should be similar to this: C:\Users\Public\Documents\Infragistics\2014.2\WPF\Samples\CLR4.0. You can open the solution and go through the source of the IGMap.WPF solution and the SeatChooser.xaml file. Please note that when using this approach the bitmap images could not be used directly as the map expects ShapeFiles as a source so you will need to find a way to convert them.You may have a look at the following forum thread where similar issue was discussed: http://www.infragistics.com/community/forums/t/92492.aspx and vote for the existing product idea regarding the use of an image that could be zoomed and panned in the XamMap control: http://ideas.infragistics.com/forums/192363-wpf/suggestions/6543434-xammap-layer-image-background-allowing-zoom-in-o Currently it seems that there is no control that is designed to zoom and pan SVG and Bitmap images as the one you have mentioned, although the XamMap, XamGeographicMap and XamDataChart provide this functionality for their content. If you would like you can suggest new product idea for providing this control in one of our future versions at the Product Ideas site: http://ideas.infragistics.com. Please find the details below.
Steps to create your idea: 1. Log into the Infragistics Product Ideas site at http://ideas.infragistics.com (creating a new login if needed).2. Navigate to the product / platform channel of your choice (e.g. WPF, Windows Forms, ASP.NET, HTML5 / Ignite UI, iOS / NucliOS, etc.)3. Add your product idea and be sure to be specific and provide as much detail as possible. Explain the context in which a feature would be used, why it is needed, why it can’t be accomplished today, and who would benefit from it. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it. Be convincing!
The benefits of submitting the product idea yourself include:- Direct communication with our product management team regarding your product idea.- Notifications whenever new information regarding your idea becomes available.
Additional benefits of the Product Idea system include:
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.- Allow you to shape the future of our products by requesting new controls and products altogether.- You and other developers can discuss existing product ideas with members of our Product Management team.
The product ideas site allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Hi,
I am just checking if you have any other questions on the matter. Please feel free to let me know if I could assist you further.
Thank you very much for following up on this issue. I created an idea and received a notification that it is being under review. In the mean time, converted some of my drawings to XAML images and some to PNG images and using product that provides WPF zooming/panning controls to XAML and PNG images.
Best regards.
Thank you for the update Ammar. Please feel free to let me know if you have any other questions on the matter.