SouthernPost


Does anyone know where I can refer to or download vepushpin graphics which contain numbers on the pushpins I tried local.live.com but the links that I had seem dead.



Re: vepushpins with numbers

Derek Chan


Do you mean the pushpins with numbers on top when a route is generated Here's the links to them and they seem to work for me:

http://maps.live.com/i/bin/1.3.1115150037.31/pins/RedCircle001.gif
http://maps.live.com/i/bin/1.3.1115150037.31/pins/RedCircle002.gif
....
http://maps.live.com/i/bin/1.3.1115150037.31/pins/RedCircle400.gif

The limit goes up to 400. Let me know if this is what your looking for.

Hope that helps.







Re: vepushpins with numbers

SouthernPost

Yes, that is exactly what I was looking for. Thanks. However, when I click on one of these links, I get a "page not found error".






Re: vepushpins with numbers

SouthernPost

That's perfect. Thanks.

One other unrelated question...

I'm developing some simple mapping functionality to show lat/lon coordinates. If we like it, we may integrate it into a website which our customers will use to access their data from the internet. The customers will have to go through a login screen first, before they can access their lat/lon data on a map. Do you know if that will require some kind of license and usage fee to Microsoft






Re: vepushpins with numbers

Derek Chan

According to the terms agreement for VE here:
http://www.microsoft.com/virtualearth/control/terms.mspx

"You are permitted to request no more than One Hundred Thousand (100,000) Transactions from the API in a twenty four hour period. A ¡°Transaction¡± means using any of the following Service functionalities (and subsets thereof), or any successor thereof or addition thereto, all as described in the Service software development kit located at http://go.microsoft.com/ LinkID=4334835 (¡°SDK¡±) including: i) Find Methods (Find, FindResult, FindResults; ii) Route Methods: (Route, RouteItinerary, and RouteSegment); and, iii) rendering eight (8) map or photographic imagery tiles (256 x 256 pixels per tile)."

This is the most important thing as Microsoft wants you to purchase VE if your going to go overboard on transactions (typically for production environments).  If you can stay within the limits (if its a small app/demo) then you should be fine




Re: vepushpins with numbers

SouthernPost

Derek -

Do you have an example of the AddPushpin function call which increments the reference to the numbered pushpin icons






Re: vepushpins with numbers

Derek Chan

Unfortuantely all that exists inside the API, and is quite difficult to unobfuscate / explain exactly how the icons are incremented:

However if you really want to figure out whats going on, here's one place that makes the call to addpushpin.  There actually are about 5 methods that are all related to adding pushpins but the one below is likely where the increment takes place.

this.AddPushpin=function(a){VEMap.ValidateState();
VEValidator.ValidateObject(a,"vePushpin",VEPushpin,"VEPushpin");
var e=this.pushpins.length;
for(var d=0;
d<e;
d++){var f=this.pushpinsDrinks;
if(f.ID==a.ID)throw new VEException("VEMap:AddPushpin","err_invalidpushpinid",l455nt)}this.pushpins.push(a);
a._SetMapInstance(this);
var c=b.Decode(a.LatLong);
if(this.GetMapMode()==Msn.VE.MapActionMode.Mode3D)this.m_vegraphicsmanager.Add3DPushpin(a.ID,c.Latitude,c.Longitude,25,25,"VEAPI_Pushpin",a,Msn.VE.API.Globals.vepushpinpanelzIndex-1);
else this.vemapcontrol.AddPushpin(a.ID,c.Latitude,c.Longitude,25,25,"VEAPI_Pushpin",a.GetContent(),Msn.VE.API.Globals.vepushpinpanelzIndex-1);
$VE_A.LogAPI("VE | APIs","VEMap - AddPushpin")}