Community of VE/MapPoint Users and Developers
This is a discussion on MapPoint Map Refresh within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello, I'm using VB6 and the Mappoint control to build a EXE that include some map functionalities. The problem is ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| MapPoint Map Refresh I'm using VB6 and the Mappoint control to build a EXE that include some map functionalities. The problem is that when I add a pushpin or other items on the map then the map is updated at every code instruction. Is there a way to draw some items without updating the map at every instruction? Example of code Code: Set item = myMap.Shapes.AddLine(loc1,loc2) item.Line.ForeColor = intForeColor item.Line.EndArrowhead = True item.Line.Weight = 0 Same problem when creating pushpins. In this case first I see the pushpin icon then the car icon (myDataSet has Symbol=car) Code: Set item = myMap.AddPushpin(loc1, "MyName") item.MoveTo myDataSet Thank you for any help |
| |||
| Re: MapPoint Map Refresh
Hi, Quote:
Quote:
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: MapPoint Map Refresh Quote:
When you run the map there is a "hidden" process "MapPoint.exe", check the taskmanager, so there is some kind of interprocess comunication. And I fear that this happen at every instruction call. It's relatively fast, in other similar situations i realized a delay of some milliseconds for every instructions due to the necessary context switch between the two processes. I still not tried to add something like 10000 items but I fear that the process will be very slow. |
| |||
|
Hi, Yes, for each mappoint component you drop on a form a mappoint.exe instance is started in background. mapooint.exe is in this case a COM server for your application. Each method is sent to it and returns with the appropriate data. Of course this gives delays, and if you wants to drop honderds or more pushpins on your map you will have incredible delays. But these delays are not nececarly because the delay of interprocess. For a large amount of data is nececarly to study (or better trial and error) to see what the most gain gives in speed. Not very easy all the time
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: Datasets Quote:
|
| |||
| Re: MapPoint Map Refresh
I have the exact same problem as Andreaplanet. Creating many pushpins at the same time takes very long because the addPushpin() method automatically refreshes the map. I need to disable the map auto-refresh. |
| |||
| Re: MapPoint Map Refresh
I had much the same problem using addPushpin for a whole bunch of pushpins. On my dev machine, adding about 3000 pushpins (from my db) used to take between 90 and 120 seconds. What I now do is to export my data into a CSV (with 3 columns - Latitude,Longitude,Name) and then use the ImportData method:- Dim ds As MapPoint.DataSet ds = Map.DataSets.ImportData(Filename) ds.Symbol = 1 [or whatever symbol you want] The same 3000 pushpins now take about 3 seconds to load! John
__________________ John Lewis |
| |||
| Re: MapPoint Map Refresh Quote:
But disabling the auto-refresh would still be a better solution. Anyway, this workaround will be very useful, even though not the solution I was looking for. |
![]() |
| Tags |
| map, mappoint, refresh |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can I refresh the data link from VB | flymoe | MapPoint 2006/2009 Discussion | 2 | 10-21-2004 06:46 AM |
| How to refresh a Map | Anonymous | MapPoint 2006/2009 Discussion | 1 | 01-03-2003 03:42 PM |
| Mappoint-Refresh linked data on a form load event .... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 10-22-2001 01:38 PM |
| Is there a way to change the GPS refresh rate to l.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 08-24-2001 07:33 AM |
| Is there any way to refresh just one PushPin Layer.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-27-2001 09:29 AM |
Flights USA
Book low cost flights to the USA quickly and easily online at Holiday Hypermarket. Florida, California, Las Vegas and New York are among the exciting range of destinations.
Travel Agent
Travel Counsellors was voted UK's Best Travel Agent at the Guardian Unlimited travel awards.
Holiday to Thailand
Want to go somewhere new? Book a low cost holiday to Thailand at dealchecker.co.uk. See the stunning national parks and uninhabited islands.
Cuba Holidays
Cuba holidays offer an exciting cultural and wonderful culinary experience. Book with The Holiday Place for a great deal.
Balearics
Before booking to the Balearics Islands make sure you check out our travel guide online. The Balearics are renowned for their vibrant nightlife but there are also some stunning Gothic cathedrals, Stone Age ruins and fishing villages.
Family Holidays
Family holidays can be great fun. Check out your options at Travel.co.uk
Holidays in Fuerteventura
Need a break? Go to the Canary Islands! Find information on holidays in Fuerteventura at On The Beach.