Change a route / direction

Last post 6/30/2009 10:00:37 PM by Chris Pietschmann. 1 replies. << Back to Web.Maps.VE v2.0 General
6/21/2009 2:05:21 PM
page

Change a route / direction

Hello, i changed the 'Route-Planner' Sample for Version 2.0. The multi-point-route is generated and visualized after a call of 'Map.GetDirection'. But how can i change the geometrie and the 'waypoints'. I saw, a route is a collection of route-legs with route-itinerary and items. But in the properties of the item, there is no 'titel' (step 1, step 2, ...). Is there a 'hidden layer' with the shapes of the route? Background: I want to add some waypoints and informations to a generated route based on points of interrest (POI) from a database. So i must catch the results of the route, check the database and add the POI's. Is this possible?
6/30/2009 10:00:37 PM
Chris Pietschmann

Re:Change a route / direction

The only way to plot your own Pushpins and such for the directions that are generated/plotted is you actually clear the directions once they are loaded, and look through the route info and plot your own Shapes to represent it. Unfortunately, Microsoft does not expose the Shape Layer that contains the generated Route, so that is why you can't just modify those shapes directly.