The WebSharper Extensions for Bing Maps has been updated to reflect the last changes in the 7.0 API. Here is a list of additions:
A new "modules" API which allows you to create extension modules for Bing Maps. This also comes with the three following built-in modules.
- Directions: This is a simplified API to access the Routes REST API. It provides a very convenient interface, with attractive features such as draggable waypoints which trigger a recalculation of the route, and clickable instructions which causes the map to zoom on the corresponding location.
- We advise you to only use our previously existing interface to the Routes REST API if you want to use it without displaying a map.
Traffic: This simple class allows you to display traffic information as a layer on the map.
- VenueMaps: This API provides precise information about buildings surrounding an area, and draws their ground footprint on the map.
To demonstrate the simplicity of these new APIs, here is the code for a map allowing the user to search for a route between two locations.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
The updated extension for Bing Maps can be downloaded at this address.