qslewis


I was disappointed to learn I can't (easily) create my own pushpin layer without having to reference an external (to my webpage) URL. Say I want to prompt the user to enter 5 addresses and then plot the 5 together all at once. I'd imagine being able to Find() the right lat/long for each person, add a corresponding pushpin to an array for each user, and then add the array of pushpins as a layer. I don't want to copy the data out to a separate URL for privacy reasons. Besides, I already have the data in memory, I just want to display it all at once as a pushpin layer!

Right now I'm just having to sequentially add a new pushpin for each person. The map flashes around as I add each point. I can't group various pushpins together.

Why isn't there some type of VELayerSpecification that allows me to specify an array of necessary data or even an in-page GeoRSS formated XML string that I could create

Or... is there a better approach (I'm not seeing) to achieve what I'd like with the contraints I have



Re: How to programmatically add pushpin layer (without GeoRSS feed or Live Maps)?

Derek Chan


Correct, if your not doing GeoRSS Feed/Live maps then your stuck with Map.AddPushpin() and manually inserting them that way. Performance wise I don't think you should be experiencing the map flashing all over the place especially if your only adding 5 pins.







Re: How to programmatically add pushpin layer (without GeoRSS feed or Live Maps)?

qslewis

Thanks for confirming the suspicion. The 5 pins was illustrative... In reality, I'm adding several (couple hundred). So addings lots of pushpins makes the map jump around.  Also, not having layers makes dealing with multiple groups of pushpins (i.e. layers) difficult (impossible ). I can't show/hide multiple groups or delete the groups. I was hoping someone had a workaround (decorator class or something)...





Re: How to programmatically add pushpin layer (without GeoRSS feed or Live Maps)?

Derek Chan

Cluster them so that you have one pin representing many.  Having around 400+ pushpins is guaranteed to have a huge hit on performance

Article on clustering here:
http://viavirtualearth.com/vve/Articles/Clustering.ashx




Re: How to programmatically add pushpin layer (without GeoRSS feed or Live Maps)?

TomekCalifornia

I poste this already a few times. I hope MS is listening. Layers with

1. Clustering

2. Lazy Partial Loads on Demand

3. Configurable via API popups, tabs for the pins.

are a MUST if those maps are to be used for ANYTHING but fancy show of a FEW pins full of hacks.

I bet if MS wrote anyone a job offer on this list VE would be in way better shape because they are lagging behing G's stuff.

I will stick with MS because maps data is better (G has noone where MS does)

But VE API needs serious WORK to match G!

Also the formusms tehmeselves here have issues with fonts and those editors are kind of poor to post here.

Look at the quality of G documentation. I am G adversary so I am posting this just because I want MS VE to rock!






Re: How to programmatically add pushpin layer (without GeoRSS feed or Live Maps)?

Coder_By_Day

Hi

I'm having the same problem,

I want to load one 'layer' of around 200+ icons, then load 'live icons', the live icons update every 60 seconds from MySQL

I'm wondering tho if this can be done by loading the 200+ icons first, catching the amount you place on the map [200] and then add the others, when it comes to deleting the pins, only delete the ones which have a pinID of 200+, then re-plot the new pins on top...

so is there is a command for deleting push pins over a certain pinID number instead of using

map.DeleteAllPushpins();





Re: How to programmatically add pushpin layer (without GeoRSS feed or Live Maps)?

Derek Chan

I believe you are looking for the VEMap.DeletePushpin(id) method.

More information here:

http://dev.live.com/virtualearth/sdk/ref/HTML/M_Namespace_VEMap_DeletePushpin.htm