map.SetClientToken not mapped


The method SetClientToken is not mapped in Views. This is used for customer id for commercial contracts.
Closed Aug 18, 2008 at 7:51 AM by IanBlackburn


IanBlackburn wrote Jul 15, 2008 at 9:22 PM

Subsequently VERoute does not contain the ShapePoints property: http://msdn.microsoft.com/en-us/library/cc470011.aspx

IanBlackburn wrote Jul 24, 2008 at 8:32 AM

Add the following method to VEMap.cs

/// <summary>
    /// Sets the client token for clients with a commercial VE contracts 
    /// </summary>
    /// <param name="token">token returned from Virtual Earth Platform Token Service call as detailed here: http://msdn.microsoft.com/en-us/library/bb924353.aspx </param>
    /// <remarks>
    /// Setting the client token allows additional functionality on the map such as having multiple routes displayed on a single map.  
    /// </remarks>
    public void SetClientToken(string token)
        HtmlPage.Window.Invoke("SetVEClientToken", (ScriptObject)this, token);

IanBlackburn wrote Jul 24, 2008 at 9:06 AM

Add the following to VERoute.cs:
/// <summary name="ShapePoints">
/// An array of VELatLong Class objects that identify the shape of the route.
/// </summary>
/// <remarks>The shape points are created for the highest zoom level, which means the closest to the ground.  All use of route shape point data is restricted to customers who have received explicit permission and instructions about route shape points from Microsoft. </remarks> 
public VELatLong[] ShapePoints
        return ConvertToArray<VELatLong>(GetProperty<ScriptObject>("ShapePoints"));

IanBlackburn wrote Jul 24, 2008 at 5:19 PM

Also need to add the following to views.js:

function SetVEClientToken(veMap,token)
There is probably a better way to do this????

wrote Aug 18, 2008 at 7:51 AM

Resolved with changeset 15142.

wrote Feb 12, 2013 at 7:16 PM

wrote May 14, 2013 at 10:33 PM