Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Adding data and displaying territorries within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I'm just starting with MapPoint 2004 and now using it as ActiveX Control in C#. I browsed a lot ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Adding data and displaying territorries I browsed a lot of articles and newsgroups but I did not find a simple guideline how to do this by COM: Add some data (two fields: ZIP-Code, income), display it in zip-code regions and color the regions depending on the income. Does anybody have an example ? (the progr. language doesnīt matter, the COM methods and fields will be the same). Thanks in advance, Friedhelm |
| |||
|
Hi, This question has comed up here already. Try to do a search on "income" on this forum, chance is high you find already what you look for.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
Hi, I did a search on "income", but the there is nothing that points into my direction. I found some articles, in all of them data is imported from xls or whatever .What I want to do is adding the data by COM. There is a great object model, but what to use - DataSet, DataMap, DataFields. All explained detailled in msdn, but I donīt find a bundled example. |
| |||
|
Hi, Ok, but I do not exacly understeand then what you wants to do. Can you explain more ? I understeand you want to add something to a dataset but do not understeand how.. waht..
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
OK, let me try.. I want to add 10 pairs of data, 1st column is a zip code (or zip area) , the 2nd is an integer value. I want to display the 10 locations as shaded areas and the integer value determines the color of the area. I can do all this easily in the mappoint GUI with the wizards, but I want to do this by using the COM interface from my app. I managed to read the data from xls files, but tha is not want I want to do. Thanks in advance, Friedhelm |
| |||
|
Hi Friedhelm, I never used them, but have a look at ImportData or DisplayDataMap methods (one of them shure will do what you wants to do).
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
Hi, I managed to import data from xls using MapPoint.DataSet set1 = map.DataSets.ImportData(...) After that, I display this set using Code: DataMap dataMap = set1.DisplayDataMap(...). Code: MapPoint.DataSet set2 = map.DataSets.AddPushpinSet("myset");
|
| |||
|
Ok, I took one hurdle: It seems that there is now way to insert a location into the dataset of my choice. So I create a pushpin that will be added to the standard set by default. Afterwords, I have to move it to my set: Code: // create the dataset
MapPoint.DataSet set1 = map.DataSets.AddPushpinSet("Patients");
//resolving the Location using FindAdressResults in a seperate method
MapPoint.Location loc = ...
// create the pushpin
MapPoint.Pushpin pin = map.AddPushpin(loc,"location");
// and move it to set1
pin.MoveTo(set1);
I can even display the set on the map by Code: set1.DisplayPushpinMap(); One of them is the parameter field, which I donīt know how to declare right. All the examples in the web use an internal dataset of demographical data, now a dataset created manually. Still open: where to add the additional value to determine the color of the area? |
| |||
|
Hi, Dont know how to set area color. Did a little search in the help but could not fount it. I hope someone else will drop in here. btw: tanks for feedback, it benefit others.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| adding, data, displaying, territorries |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding large amount of data to my map, what's the best way? | Candace | MapPoint 2006/2009 Discussion | 4 | 03-14-2006 10:20 AM |
| Displaying a few simple data numbers per state on a US map | Anonymous | MapPoint 2006/2009 Discussion | 1 | 05-05-2005 06:03 AM |
| Adding Non-Numerical Data | Anonymous | MapPoint 2006/2009 Discussion | 2 | 08-10-2004 10:33 AM |
| displaying custom data on Pushpins when linked | TheJudge | MapPoint 2006/2009 Discussion | 3 | 04-13-2004 08:53 AM |
| Need Assistance with Displaying CSV data by City | SideStep | MapPoint 2006/2009 Discussion | 0 | 01-04-2004 11:18 PM |
Ibiza Holiday
Visit the party capital of Europe with an Ibiza holiday! Check out the deals online on UlookUbook...