Community of VE/MapPoint Users and Developers
This is a discussion on Avoided Area? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I'm currently using the following code:- Set objLoc = objMap.SelectedArea.Location If Not objLoc Is Nothing Then If Type Of objLoc ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Avoided Area? Set objLoc = objMap.SelectedArea.Location If Not objLoc Is Nothing Then If Type Of objLoc Is Location Then Set objShape = objMap.Shapes.AddShape(geoShapeRectangle, objLoc, 5, 5) objShape.Avoided = True End If End If This has been bugging me... How can I make the area to be avoided be the exact shape I've actually drawn? At the moment, I'm hard coding a distance of 5 x 5 miles. Surely there must be a simple way to use the Selected Areas distance? Thanks |
| |||
| make avoided area same as selected area
If you're selecting area on the map and want the avoidance area to be the same size, try storing the selected area height and width before doing anything else. Or am I misreading your question? Code: Dim selWidth as long Dim selHeight as long selWidth = objMap.SelectedArea.Width selHeight = objMap.SelectedArea.Height .. .. Set objShape = objMap.Shapes.AddShape(geoShapeRectangle, objLoc, selWidth, selHeight) .. .. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Surface Area | Dazzer | MapPoint 2006/2009 Discussion | 9 | 01-05-2006 04:13 AM |
| is an address within an area? | Anonymous | MapPoint 2006/2009 Discussion | 4 | 02-23-2005 01:51 PM |
| Mappoint fails calculating the fastest route with avoided zo | Anonymous | MapPoint 2006/2009 Discussion | 4 | 06-08-2004 06:27 AM |
| How to get the 4 map area coordinates ? | Anonymous | MapPoint 2006/2009 Discussion | 1 | 01-22-2004 01:44 PM |
| Selected Area | amanuel | MapPoint 2006/2009 Discussion | 4 | 08-22-2002 01:23 PM |
Cheap flights to Athens
Book cheap flights to Athens on Holiday Hypermarket and you can book some great value accommodation too! Check it out online.
Flights to Portugal
Find cheap flights to Portugal on Travel Counsellors. A personal Travel Counsellor can help you plan flights and find accommodation in Portugal.
Holiday in Turkey
A Holiday in Turkey is great value when you book with dealchecker.co.uk. There is an abundance of things to see and do. Check out the well-preserved Greco-Roman ruins.
Holidays in Egypt
A holiday in Egypt will stimulate your mind, captivate your heart and spark your senses. Visit this exceptional country, book today!
Tunisia
Tunisia enjoys excellent weather, golden beaches and a beautiful blue sea. Moving away from the beach you will find a country that has a rich and varied past. Discover the secrets of history yourself by exploring all the ruins.
Cheap family holidays
To plan cheap family holidays, use Travel.co.uk to explore all the delightful possibilities that there are.
Holidays in Goa
Want to know more about Indian culture? Visit On The Beach for information on holidays in Goa.