Community of VE/MapPoint Users and Developers
This is a discussion on Virtual Earth API: Bulk Adding Pushpins to a Layer to Improve Performance within the Virtual Earth Blogs forums, part of the Blogs category; One of the new features from the Virtual Earth v6 Map Control API is the ability to bulk add groups ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Virtual Earth API: Bulk Adding Pushpins to a Layer to Improve Performance One of the new features from the Virtual Earth v6 Map Control API is the ability to bulk add groups of pushpins to the map in one step. This improves performance when putting a large number of pushpins on the map since the HTML markup of the pushpins is serialized and inserted in the map in one operation. Bulk adding pushpins to the map consists of 3 steps:
For example: 1. Create an array with a large number of pushpins:
2. Create an empty shape layer and add it to the map:
3. Add the array of pushpins to the shape layer:
Here's a link to a working sample which adds pushpins to the map using the new bulk add approach. It has a checkbox which allows you to turn off the bulk add and add the pushpins in the normal manner so you can compare the performance improvement between bulk add and the traditional approach. The time to execute a bulk add operation tends to be about 1/2 the time of the traditional approach.
More... |
![]() |
| Tags |
| adding, api, bulk, improve, layer, performance, pushpins, virtual earth |
| ||||
| Posted By | For | Type | Date | |
| Merging Multiple Routes - MapPoint Articles - MP2K Magazine | This thread | Refback | 01-08-2008 03:05 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Virtual Earth API: Adding KML or GeoRSS Layers to the Map | Keith Kinnan's Weblog | Virtual Earth Blogs | 0 | 01-04-2008 09:27 AM |
| Layer switching in Virtual Earth Apps | VE Team | Virtual Earth Blogs | 0 | 09-21-2007 06:22 PM |
| Deleting pushpins in bulk | brianmcg | MapPoint 2006/2009 Discussion | 1 | 06-22-2006 01:08 PM |
| Improving the performance of generating pushpins Programmati | kavehmb2000 | MapPoint 2006/2009 Discussion | 2 | 05-21-2006 05:48 AM |
| Adding a layer/image over a City | Anonymous | MapPoint 2006/2009 Discussion | 2 | 11-22-2002 01:25 PM |
Ski Deals
Book first-rate ski holidays from the leading travel brands at exceptionally competitive prices. Check out the latest range of ski deal online at Holiday Hypermarket.
Spain Weather
Check out Spain Weather - Travel Counsellors details information on Spain including, weather, flights and accommodation.
Canada Flights
Canada flights are great value flights when you visit dealchecker.co.uk first. Full of surprises, Canada is simply the most astonishingly beautiful country in the world.
Dominican Republic Holidays
Dominican Republic holidays have something to offer for everyone. From water sports, to sun bathing and more, enjoy a holiday there!
Turkey
Before booking a holiday to Turkey check out the ULookUBook travel guide. Find out about the rich culture in Turkey before you go there to help you to make the most of your holiday.
Compare flight prices
Travel.co.uk makes it easy for you to compare flight prices from hundreds of UK based travel companies.
Cheap Florida Holidays
You thought American holidays were expensive? No ways! Affordable holidays to Florida, only at On The Beach.