Skip to content

Commit c7b7372

Browse files
Merge pull request #253085 from stevemunk/render-v1-deprecation-3
Updates to "Migrate web service from Bing Maps"
2 parents b7fa5ce + 510db7f commit c7b7372

File tree

2 files changed

+102
-104
lines changed

2 files changed

+102
-104
lines changed

articles/azure-maps/migrate-from-bing-maps-web-app.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Web apps that use Bing Maps often use the Bing Maps V8 JavaScript SDK. The Azure
2626
> * Show traffic data
2727
> * Add a ground overlay
2828
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.
3030

3131
* [Cesium] - A 3D map control for the web. <!--[Cesium code samples] \|--> [Cesium plugin]
3232
* [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
8181

8282
The following are some of the key differences between the Bing Maps and Azure Maps Web SDKs to be aware of:
8383

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.
8585
* 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.
8686

8787
> [!TIP]
@@ -135,7 +135,7 @@ Loading a map in both SDKs follows the same set of steps;
135135

136136
**Key differences**
137137

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].
139139
* 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.
140140
* 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`).
141141
* 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 () {
12251225

12261226
**After: Azure Maps**
12271227

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.
12291229

12301230
```javascript
12311231
map.setTraffic({
@@ -1711,7 +1711,7 @@ Learn more about migrating from Bing Maps to Azure Maps.
17111711
[atlas.io.read function]: /javascript/api/azure-maps-spatial-io/atlas.io#read-string---arraybuffer---blob--spatialdatareadoptions-
17121712
[atlas.layer.ImageLayer.getCoordinatesFromEdges]: /javascript/api/azure-maps-control/atlas.layer.imagelayer#getcoordinatesfromedges-number--number--number--number--number-
17131713
[atlas.Shape]: /javascript/api/azure-maps-control/atlas.shape
1714-
[Azure Active Directory]: azure-maps-authentication.md#azure-ad-authentication
1714+
[Azure AD]: azure-maps-authentication.md#azure-ad-authentication
17151715
[Azure Maps account]: quick-demo-map-app.md#create-an-azure-maps-account
17161716
[Azure Maps Glossary]: glossary.md
17171717
[Azure Maps React Component]: https://github.com/WiredSolutions/react-azure-maps
@@ -1752,9 +1752,10 @@ Learn more about migrating from Bing Maps to Azure Maps.
17521752
[Popup with Media Content]: https://samples.azuremaps.com/?sample=popup-with-media-content
17531753
[Popups on Shapes]: https://samples.azuremaps.com/?sample=popups-on-shapes
17541754
[Pushpin clustering]: #pushpin-clustering
1755+
[Render]: /rest/api/maps/render-v2
17551756
[Reusing Popup with Multiple Pins]: https://samples.azuremaps.com/?sample=reusing-popup-with-multiple-pins
17561757
[road tiles]: /rest/api/maps/render-v2/get-map-tile
1757-
[satellite tiles]: /rest/api/maps/render/getmapimagerytile
1758+
[satellite tiles]: /rest/api/maps/render-v2/get-map-static-image
17581759
[Setting the map view]: #setting-the-map-view
17591760
[Shared Key authentication]: azure-maps-authentication.md#shared-key-authentication
17601761
[Show traffic data]: #show-traffic-data

0 commit comments

Comments
 (0)