Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| 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 |
| |||
| 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.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: Show Postal code Area in existing territory file Quote:
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 |
| |||
| 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 |
| |||
| Re: Show Postal code Area in existing territory file Quote:
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 |
![]() |
| Tags |
| area, code, existing, file, postal, show, territory |
| ||||
| 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 | |
| |
| ||||
| 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 |