Hi,
many customers want to have their view of map according to their location i.e.
europeans want to have europe centered and the "rest" around,
americans want to have america centered and the "rest" around and so on.
I saw in your sample browser you can center the view to e.g. america but that is not what I want,
because if you zoom out again, there will be the earth centered at europe.
How can I achive that task?
BR,
Hendrik
Hello Hendrik,
Thank you for your update on this matter. The shape-files that Infragistics exposes are most like the first screenshot that you have provided, and so in order to achieve the second and third ones with the same shape-file, you would essentially need to allow that shape-file to "wrap" in the viewport of the XamMap.
Unfortunately, this wrapping is not something that is supported by the XamMap, and in order to achieve this at the moment, you would need to have multiple shape-files for where you would want to have the map centered and then feed that particular shape-file to the XamMap depending on the location of your user.
If you would like to see shape-file wrapping included in the XamMap in a future version of the control, I would recommend suggesting a new product idea for this at our WPF ideas site. This will place you in direct communication with our product management teams who plan and prioritize upcoming features and development based on community and user feedback.
Please let me know if you have any other questions or concerns on this matter.
I attached some pictures where is should be clearer now what I want. Look at the shapefiles centered at different locations in the world i.e. Europe, America and Asia:
This is what I want to achieve. Customers in Asia e.g. should see their map as the last picture.
Is that even possible with shapefiles?
I use your IG shapefiles.
I have been investigating into this behavior that you are looking to achieve, although I'm not entirely sure I completely understand in this case. It sounds like you want to be able to zoom out and have the XamMap be centered around the point that you were zoomed in on, but I am unsure? If this is the case, you may be able to do this using the WindowCenter and WorldRect properties of the map, but it is worth noting that the XamMap does not wrap its imagery around to the other side of the control, and so you might end up cutting off a bit of your shape-file if this is what you are looking to achieve.
Would it be possible for you to please elaborate a little bit further on exactly the functionality that you are looking for here, assuming my impression above is incorrect?