I have produced a pin map with over a 100 locations based upon lat, long and I now need to draw a 30 mile radius around each. Is there a quicker way to do this besides the manual way?
This is a discussion on Drawing Multiple Radius Circles within the MapPoint Desktop Discussion forums, part of the Map Forums category; I have produced a pin map with over a 100 locations based upon lat, long and I now need to ...
I have produced a pin map with over a 100 locations based upon lat, long and I now need to draw a 30 mile radius around each. Is there a quicker way to do this besides the manual way?
You will need to do this with custom programming.
For each location, you need a call to AddShape, eg. in VB6:
myMap.Shapes.AddShape geoShapeCircle, oLoc, 30,30
where myMap is your Map object, oLoc is your location object.
If you have the pins already, you would also need code to loop over the pushpins getting their locations (=oLoc).
Richard
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
A How-To article has been published here:
A Simple Add-in for MapPoint API Beginners - MapPoint Articles - MP2K Magazine
Richard
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
Thank You very much. This will save me a considerable amount of time.
Thank you for the information Help out so very much. I have a question since in the code provided the radius is hard coded, is there a way to have the code reference an excel sheet that has the values listed (5900+) and use those values as the radius value? If this is possible I would be greatly appreciative.
thank you
Pete
Hi everyone
Being a newbie and having spent more time than I should trawling for advice through this forum, I have the exact problem that Pete and Ford have. Multiple pushpins with varying radius required. I have downloaded the zipfile, but having no knowledge of visual basic, I'm not able to 'tweak' it to be of any major help at all. Anyone??
Hi,
I'm not a VB programmer, but there should be various articels to find on internet how to read an excel sheet in VB. However I should advice so study VB a little for a while otherwise it will be very hard to get something working, even with help.
rgds, Wilfried Mestdagh
www.mestdagh.biz
www.comfortsoftware.be
www.expertsoftware.be
MapPoint coding demo
MapPoint 2011 available, buy now
Also I'd check out this recent thread
Drawing Radii (Circles)
David
UK mapping and map analysis services at www.broomanalysis.plus.com
There are currently 1 users browsing this thread. (0 members and 1 guests)