Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

Center Point

This is a discussion on Center Point within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi Please can you tell me how to get the center point of the map Lat, Long I am creating ...

  1. #1
    colin_turner99 is offline Junior Member White Belt
    Join Date
    Dec 2005
    Posts
    8

    Center Point

    Hi

    Please can you tell me how to get the center point of the map Lat, Long

    I am creating a zoom option in my app so the user can press F1 - F4 to select views of the map and i need to store the position data from the map

    Thanks in advance

    Colin

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    Code:
                int x = (MP.Width - 6) / 2;
                int y = (MP.Height - 6) / 2;
                Location loc = MP.ActiveMap.XYToLocation(x, y);
    loc is the center point.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Finding Center of Data
    By kerleyp in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 08-18-2005, 04:34 PM
  2. Find center of a polygon
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 11
    Last Post: 05-25-2005, 09:54 AM
  3. Center Map to a pushpin?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 7
    Last Post: 02-14-2005, 05:31 PM
  4. Finding the center of a group of pushpins
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 04-07-2004, 04:51 PM
  5. Determining Center of a Zipcode
    By shaistasohail in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-21-2002, 11:13 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27