MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Show Postal code Area in existing territory file

This is a discussion on Show Postal code Area in existing territory file within the MapPoint 2006/2009 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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack (2) Thread Tools Display Modes
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 05-30-2007
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 05-30-2007
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 05-31-2007
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 05-31-2007
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 05-31-2007
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
area, code, existing, file, postal, show, territory


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/show-postal-code-area-existing-territory-file-5909.html

Posted By For Type Date
Microsoft Learning Suite - MapPoint - MapPoint News - MP2K Magazine This thread Refback 05-31-2007 09:41 PM
The Magazine for MapPoint - MP2K Magazine This thread Refback 05-31-2007 10:09 AM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Territory Postal Sector Gaps? MikeThraves MapPoint 2006/2009 Discussion 1 10-19-2006 08:25 AM
show ONLY the counties in my territory eieio59 MapPoint 2006/2009 Discussion 1 08-24-2004 09:37 PM
find area for postal codes Anonymous Wish List 0 01-16-2004 07:13 AM
GIS file > territory Anonymous Wish List 0 01-12-2004 05:31 PM
gettign teh area inside a polygon or territory Anonymous MapPoint 2006/2009 Discussion 1 10-18-2003 06:21 PM


All times are GMT -5. The time now is 07:18 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55