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 5 of 5

Show Postal code Area in existing territory file

This is a discussion on Show Postal code Area in existing territory file within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I have a French map (ptm extenstion). This map has all our 50 territories inside colorized. What i want ...

  1. #1
    Rubinho is offline Junior Member White Belt
    Join Date
    Nov 2006
    Posts
    10

    Question Show Postal code Area in existing territory file

    Hi,

    I have a French map (ptm extenstion). This map has all our 50 territories inside colorized.

    What i want to do in my application is when i select a city (by postal code), i want to open my file and show that city. (if possible marked in other color)

    How can i do this ?
    I can already open my ptm file to see ech territory, but i need to know how i can mark the specified city and if poosible zoom to the city also.

    I Use VB.Net, but the answer doesn't really has to be in vb.net


    Thx to all

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

    Re: Show Postal code Area in existing territory file

    Hi,

    I'm not sure I understeand correcly, but if I do, then use SelectionChange event to see what is selected. If it is some city, then load the *.ptm file. Somewhere you have to keep a table of cities with the coordinates and eventually the zoom factor. Use that table to go to the city and zoom to the level you need.

  3. #3
    Rubinho is offline Junior Member White Belt
    Join Date
    Nov 2006
    Posts
    10

    Re: Show Postal code Area in existing territory file

    Quote Originally Posted by Wilfried View Post
    Hi,

    I'm not sure I understeand correcly, but if I do, then use SelectionChange event to see what is selected. If it is some city, then load the *.ptm file. Somewhere you have to keep a table of cities with the coordinates and eventually the zoom factor. Use that table to go to the city and zoom to the level you need.
    Hi,

    Thx for the help, i already spent a lot time on it, and found a good solution/alternative

    With FindAdress, i searched the city, placed a pushpin on it and zoomed to the destination.
    I still have my old territories, so the stuff works

  4. #4
    nbhatnagar_map is offline Junior Member White Belt
    Join Date
    May 2007
    Posts
    4

    Re: Show Postal code Area in existing territory file

    Hi Rubinho,
    I am facing the same problem. I would greatly appreciate if you can elaborate on your solution or if possible share some portion of the code
    thanks in advance,
    Nitin

  5. #5
    Rubinho is offline Junior Member White Belt
    Join Date
    Nov 2006
    Posts
    10

    Re: Show Postal code Area in existing territory file

    Quote Originally Posted by nbhatnagar_map View Post
    Hi Rubinho,
    I am facing the same problem. I would greatly appreciate if you can elaborate on your solution or if possible share some portion of the code
    thanks in advance,
    Nitin

    Hi,
    This is my code:

    Try
    mpKaart.OpenMap("c:\someExistingMap.ptm")
    Dim map As MapPoint.Map
    map = mpKaart.ActiveMap
    Dim loc As MapPoint.Location
    Dim rs As MapPoint.FindResults
    Dim objPin As MapPoint.Pushpin

    loc = map.FindAddressResults(,"SomeCity",,"","Some Postal Code","France")(1)


    objPin = mpKaart.ActiveMap.AddPushpin(loc, "Additional Text")
    objPin.BalloonState = MapPoint.GeoBalloonState.geoDisplayNone
    objPin.Symbol = 79
    objPin.Highlight =
    True
    map.Location = loc
    map.ZoomIn()
    Catch ex As Exception
    MsgBox(ex.Message)
    EndTry

    If you have any questions, just ask

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Territory Postal Sector Gaps?
    By MikeThraves in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-19-2006, 08:25 AM
  2. show ONLY the counties in my territory
    By eieio59 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-24-2004, 09:37 PM
  3. find area for postal codes
    By Anonymous in forum Wish List
    Replies: 0
    Last Post: 01-16-2004, 07:13 AM
  4. GIS file > territory
    By Anonymous in forum Wish List
    Replies: 0
    Last Post: 01-12-2004, 05:31 PM
  5. gettign teh area inside a polygon or territory
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-18-2003, 06:21 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