You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-maps/migrate-from-bing-maps-web-app.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ Web apps that use Bing Maps often use the Bing Maps V8 JavaScript SDK. The Azure
26
26
> * Show traffic data
27
27
> * Add a ground overlay
28
28
29
-
If migrating an existing web application, check to see if it's using an open-source map control library such as Cesium, Leaflet, and OpenLayers. If it's and you would prefer to continue to use that library, you can connect it to the Azure Maps tile services ([road tiles]\|[satellite tiles]). The following links provide details on how to use Azure Maps in commonly used open-source map control libraries.
29
+
If migrating an existing web application, check to see if it's using an open-source map control library such as Cesium, Leaflet, and OpenLayers. In such case, connect your application to the Azure Maps [Render] services ([road tiles] | [satellite tiles]). The following links provide details on how to use Azure Maps in commonly used open-source map control libraries.
30
30
31
31
*[Cesium] - A 3D map control for the web. <!--[Cesium code samples] \|-->[Cesium plugin]
32
32
*[Leaflet] – Lightweight 2D map control for the web. [Leaflet code samples]\|[Leaflet plugin]
@@ -81,7 +81,7 @@ Azure Maps more [open-source modules for the web SDK] that extend its capabiliti
81
81
82
82
The following are some of the key differences between the Bing Maps and Azure Maps Web SDKs to be aware of:
83
83
84
-
* In addition to providing a hosted endpoint for accessing the Azure Maps Web SDK, an npm package is available for embedding the Web SDK into apps if preferred. For more information, see [Use the Azure Maps map control] in the Web SDK documentation. This package also includes TypeScript definitions.
84
+
* In addition to providing a hosted endpoint for accessing the Azure Maps Web SDK, an npm package is available for embedding the Web SDK into apps if preferred. For more information, see [Use the Azure Maps map control]. This package also includes TypeScript definitions.
85
85
* Bing Maps provides two hosted branches of their SDK; Release and Experimental. The Experimental branch may receive multiple updates a day when new development is taking place. Azure Maps only hosts a release branch, however experimental features are created as custom modules in the open-source Azure Maps code samples project. Bing Maps used to have a frozen branch as well that was updated less frequently, thus reducing the risk of breaking changes due to a release. In Azure Maps, you can use the npm module and point to any previous minor version release.
86
86
87
87
> [!TIP]
@@ -135,7 +135,7 @@ Loading a map in both SDKs follows the same set of steps;
135
135
136
136
**Key differences**
137
137
138
-
* Bing maps require an account key specified in the script reference of the API or as a map option. Authentication credentials for Azure Maps are specified as options of the map class as either [Shared Key authentication] or [Azure Active Directory].
138
+
* Bing maps require an account key specified in the script reference of the API or as a map option. Authentication credentials for Azure Maps are specified as options of the map class as either [Shared Key authentication] or [Azure AD].
139
139
* Bing Maps takes in a callback function in the script reference of the API that is used to call an initialization function to load the map. With Azure Maps, the onload event of the page should be used.
140
140
* When using an ID to reference the `div` element that the map is rendered in, Bing Maps uses an HTML selector (`#myMap`), whereas Azure Maps only uses the ID value (`myMap`).
141
141
* Coordinates in Azure Maps are defined as Position objects that can be specified as a simple number array in the format `[longitude, latitude]`.
@@ -1225,7 +1225,7 @@ Microsoft.Maps.loadModule('Microsoft.Maps.Traffic', function () {
1225
1225
1226
1226
**After: Azure Maps**
1227
1227
1228
-
Azure Maps provides several different options for displaying traffic. Traffic incidents, such as road closures and accidents can be displayed as icons on the map. Traffic flow, color coded roads, can be overlaid on the map and the colors can be modified to be based relative to the posted speed limit, relative to the normal expected delay, or absolute delay. Incident data in Azure Maps is updated every minute and flow data every 2 minutes.
1228
+
Azure Maps provides several different options for displaying traffic. Traffic incidents, such as road closures and accidents can be displayed as icons on the map. Traffic flow, color coded roads, can be overlaid on the map and the colors can be modified relative to the posted speed limit, relative to the normal expected delay, or absolute delay. Incident data in Azure Maps is updated every minute and flow data every 2 minutes.
1229
1229
1230
1230
```javascript
1231
1231
map.setTraffic({
@@ -1711,7 +1711,7 @@ Learn more about migrating from Bing Maps to Azure Maps.
0 commit comments