Anonymous
06-19-2003, 04:27 AM
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
bigRahn
06-23-2003, 01:17 PM
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)
Anonymous
06-25-2003, 04:10 AM
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.)
Thank's bigRahn for your answer
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
bigRahn
06-26-2003, 02:15 PM
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/default.asp?url=/nhp/default.asp?contentid=28001143