Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

 Subscribe to receive our newsletter. Subscribe Unsubscribe

## How to Add pushpin to a MapPoint Direction every 50m.?

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 ...

1. Senior Member Black Belt
Join Date
Jul 2002
Posts
5,137

## How to Add pushpin to a MapPoint Direction every 50m.?

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

2. Member Yellow Belt
Join Date
Oct 2002
Posts
46
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)

3. Senior Member Black Belt
Join Date
Jul 2002
Posts
5,137
Originally Posted by bigRahn
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

4. Member Yellow Belt
Join Date
Oct 2002
Posts
46

## Ah...

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

#### Thread Information

##### Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•