Top |
Post New Question |
Read All |
MP2K Asks Microsoft
802
Doud
-
July 23, 2002
I am using an ADO recordset to create pushpins and the problem is that the time to display them all is too long. Is there any way to create them directly into a MapPoint dataset (as the ImportData method easily do) and only then, have them displayed? (The article n°46 from Walt Cygan seems to tell me there is no way to do that, but still...)
Answers:
July 25, 2002
Would objMap.visible = false help?
July 26, 2002
The Visible property does not exist on Map object. I tried on the MapPointControl (mp.visible=false) but it is not faster. I am still working on it! The only way seems to build a temporary access table on which you can apply the importData method...
Doud
July 30, 2002
Make that
objMap.Application.Visible = False
October 27, 2002
The way I've done it (about 1000 pushpins a second) is to write a temporary file of the pushpin locations and then use the ImportData method:
- Create .tmp file
- get ado recordset
- output name, lat, long of each record into temporary file
- destroy references to recordset
- import file into dataset (map.Datasets.ImportData)
- set the properties for the dataset
- delete the .tmp file
This method is slower if you don't have many pushpins (<20 I think)
Hope that helps.
Harry.
Post New Answer / Follow-up