Delen via


Modules

Note

Bing Maps Web Control SDK retirement

Bing Maps Web Control SDK is deprecated and will be retired. Free (Basic) account customers can continue to use Bing Maps Web Control SDK until June 30th, 2025. Enterprise account customers can continue to use Bing Maps Web Control SDK until June 30th, 2028. To avoid service disruptions, all implementations using Bing Maps Web Control SDK will need to be updated to use Azure Maps Web SDK by the retirement date that applies to your Bing Maps for Enterprise account type. For detailed migration guidance, see Migrate from Bing Maps Web Control SDK and Migrate Bing Maps Enterprise applications to Azure Maps with GitHub Copilot.

Azure Maps is Microsoft's next-generation maps and geospatial services for developers. Azure Maps has many of the same features as Bing Maps for Enterprise, and more. To get started with Azure Maps, create a free Azure subscription and an Azure Maps account. For more information about azure Maps, see Azure Maps Documentation. For migration guidance, see Bing Maps Migration Overview.

The Bing Maps V8 web control use a modular framework as a way to minimize loading of a bunch of features and functionalities that may not be needed. The base map control consists of a number of core features such as support for pushpins, polylines, polygons, and tile layers. Modules allow users to load only the features and functionalities they need, rather than loading everything up when the application starts. You can save yourself a lot of development time by using modules and avoid reinventing the wheel.

Within the Bing Maps V8 web control, the following modules are provided:

Name Description
Microsoft.Maps.Autosuggest Provides location based suggestions as you type.
Microsoft.Maps.Clustering This module allows you to easily add in client side clustering to your application. Client Side Clustering is a method where pushpins that are close together are grouped and represented as a single pushpin, often using a different icon to indicate the cluster. This is a great way to improve both the user experience and performance of the map.
Microsoft.Maps.Contour This module makes it easy to take contour line data and visualize them on Bing Maps as non-overlapping colored areas.
Microsoft.Maps.DataBinning This module provides makes it easy to create data bins from arrays of pushpins and display them on the map.
Microsoft.Maps.Directions Allows you to calculate a route and display it on the map. The route is draggable by default for easy customization. The instructions will also be nicely formatted.
Microsoft.Maps.DrawingTools Provides a set of tools for drawing and editing shapes on top of the map.
Microsoft.Maps.GeoJson This module makes it easy to import or export data in GeoJson format.
Microsoft.Maps.GeoXml The GeoXml module makes it easy to read and write common geospatial XML file formats such as KML (Keyhole Markup Language), KMZ (compressed KML), GeoRSS, GML (Geography Markup Language, exposed via GeoRSS), and GPX (GPS Exchange Format).
Microsoft.Maps.HeatMap The module allows you to render an array of Location objects as a density based heat map.
Microsoft.Maps.Search Provides an easy method for geocoding address and reverse geocoding locations from JavaScript.
Microsoft.Maps.SpatialDataService This module wraps the Query and GeoData REST APIs in the Bing Spatial Data Services and expose them as an easy to use JavaScript library.
Microsoft.Maps.SpatialMath The module provides a bunch of useful spatial math functions.
Microsoft.Maps.Traffic Adds a traffic incident and flow data to the map.
Microsoft.Maps.WellKnownText This module makes it easy to import or export data in Well Known Text format.
Microsoft.Maps.VenueMaps This module makes it easy to display Microsoft's Venue JSON format.

You can also create custom modules, which is a really great way to promote code reuse.