Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
180
XamMap shape files set center view
posted

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

Parents
  • 28000
    Offline posted

    Hello Hendrik,

    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?

    Please let me know if you have any other questions or concerns on this matter.

Reply Children