Hi,
is It possible to add pushpin to a direction map every 50m for example.
With VB6, I arrived to add direction road but not pushpin.
Thank's
This is a discussion on How to Add pushpin to a MapPoint Direction every 50m.? within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, is It possible to add pushpin to a direction map every 50m for example. With VB6, I arrived to ...
Hi,
is It possible to add pushpin to a direction map every 50m for example.
With VB6, I arrived to add direction road but not pushpin.
Thank's
Yes, that's possible.
Of course, if you add it to every direction, after not to far you'll probably run out of space!
(I imagine seeing a big 8 direction X radiating from your inital point.)
Off the top of my head, I think the easiest way to do this is actually use longitude and latitude instead of every 50 meters.
But basic algorythm is:
put your initial point.
for x= initialatitude to finallatitude
for y=initiallongitude to finallongitude
insert pushpin at initialpoint + x, initial point + y,
initial point - x, initial point - y
(etc. for each of the directions you need.)
next
next
Hope that helps getting you started.
I think I have a routine at home somewhere that does this if you need it.
(But it's relatively easy to write yourself)
Thank's bigRahn for your answerOriginally Posted by bigRahn
But I want put my pushpin on the road.
Whit your basic algorythm, you put the pushpin on a straight line.
Is't possible to follow the road.
Thank's
I missed the staying on the road part...guess in reality, that would make much more sense.
how about adding a route on your road as you go along, and add the pushpins to that?
(Do you really need the PP, or will the route do it?)
If you want to add a point every 50 feet, you can probably use the Distance method. (remember to set units to miles first, then you'll need to do some fancy division...)
See
http://msdn.microsoft.com/library/de...entid=28001143
There are currently 1 users browsing this thread. (0 members and 1 guests)