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
This is a discussion on using routes and highlighting route within the MapPoint Desktop 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 ...
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
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
There are currently 1 users browsing this thread. (0 members and 1 guests)