MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




using routes and highlighting route

This is a discussion on using routes and highlighting route within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi im using route instead of views to get a map, i get a map for the address given by ...


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 Thread Tools Display Modes
  #1 (permalink)  
Old 07-21-2005
Junior Member
White Belt
 
Join Date: Jul 2005
Posts: 1
using routes and highlighting route

Hi im using route instead of views to get a map, i get a map for the address given by the user,what i want is to highlight the place given by the user,so what should i do to find the exact location of the address and highlight it please help me
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 07-25-2005
calv1ns's Avatar
Member
Green Belt
 
Join Date: Mar 2005
Posts: 91
FindResults

Unni

This will do most of what you want:

Uses 555 Burrady Street, Vancouver, BC, Canada as the example.

<pre>
Sub AddPPAtAddr()
Dim oMap As MapPoint.Map
Dim this_addr As MapPoint.FindResults
Dim this_pp As MapPoint.Pushpin

Set oMap = GetObject(, "MapPoint.Application").ActiveMap

Set this_addr = oMap.FindAddressResults("555 Burrard", _
"Vancouver", , "BC", , geoCountryCanada)

Set this_pp = oMap.addpushpin(this_addr.item(1).Location, "Your PushPin")
this_pp.Highlight = True

' Optional set the ballon on and zoom the map to centre based on your new Pushpin
this_pp.BalloonState = geoDisplayBalloon
oMap.DataSets.ZoomTo


End Sub
</pre>

If you want a commercial solution drop me a note.
__________________
Calv1ns
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
highlighting, route, routes


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
More routes in the same map Anonymous MapPoint 2006/2009 Discussion 1 03-09-2005 10:09 AM
Shading/Highlighting Anonymous MapPoint 2006/2009 Discussion 2 11-25-2003 02:36 PM
How do I calculate a route distance without displaying route spideybud MapPoint 2006/2009 Discussion 4 09-09-2003 11:14 AM
Routes Anonymous Wish List 1 09-03-2002 11:24 PM
I need to add bus routes to a map. What are my bes.... Anonymous MapPoint 2006/2009 Discussion 1 10-26-2001 10:41 AM


All times are GMT -5. The time now is 12:30 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