Bing Maps Adds New Modules to v7 Module CodePlex Project; 'Via' Waypoints Added to REST Services Routes API

Microsoft added three new modules to the Bing Maps v7 Module CodePlex Project which was started back in September 2011. The new modules including:Drag Handle Module created by Mike Garza, makes editing shapes easy by adding handles to drag the vertices of the shapes in order to update their values. "This is great if you […]

Microsoft added three new modules to the Bing Maps v7 Module CodePlex Project which was started back in September 2011. The new modules including:

Drag Handle Module created by Mike Garza, makes editing shapes easy by adding handles to drag the vertices of the shapes in order to update their values.

"This is great if you want to give your users a predefined shape on the map and the ability for them to edit it as they see fit. I've seen this functionality used a lot for search-type applications as it gives the user the ability to select the area they want to search, even if that area is a complex-looking polygon," posted Bing.

Shape Toolbox Module makes it easy to draw shapes on the map with a mouse. In addition to being able to draw Pushpins, Polylines, and Polygons, Mike has also added in support for Circles and Rectangles.

"The module also includes a toolbar that you can turn on or off, exposing the drawing tools to users. It's also worth noting that after drawing shapes on the map, you can click on a given shape and edit it," Bing explains. Again, this is great for search-type applications when you want to give your users the ability to draw a search area on the map.

Persistence Module allows you to provide your users with a URL they can share that will return the map to the exact location, and map style they currently see. "Optionally, this can also be automatically saved so that the next time users visit, they can continue exactly where they were last. This makes it easy to bookmark and share your maps with others," Bing said.

Also, the Bing Maps team has added a new feature to the Bing Maps REST Services Routes API called "via" waypoints.

"This feature already exists on the Bing Maps consumer site (http://www.bing.com/maps ) as the ability to drag-and-drop a route to create one or more "via" waypoints," informed Bing.

"With this new feature, developers can define a maximum of 10 "via" waypoints between each set of "stop" waypoints. "Via" waypoints can support a rich set of scenarios ranging from simple ones like specifying preferred routes, to more sophisticated ones like responding to new route points created by drag-and-drop operations," Bing explained.

For details about the new features, please refer to the Bing Maps REST Routes API reference, and Bing Maps v7 Module CodePlex Project.