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/quick-demo-map-app.md
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
---
2
-
title: "Quickstart: Interactive map search with Azure Maps | Microsoft Azure Maps"
2
+
title: "Quickstart: Interactive map search with Azure Maps"
3
3
description: Learn how to create a demo web application for interactive map search by using Microsoft Azure Maps web SDK.
4
4
author: philmea
5
5
ms.author: philmea
6
-
ms.date: 1/14/2020
6
+
ms.date: 5/21/2020
7
7
ms.topic: quickstart
8
8
ms.service: azure-maps
9
9
services: azure-maps
@@ -14,8 +14,9 @@ ms.custom: mvc
14
14
# Quickstart: Create an interactive search map by using Azure Maps
15
15
16
16
This article demonstrates the capabilities of Azure Maps to create a map that gives users an interactive search experience. It walks you through these basic steps:
17
+
17
18
* Create your own Azure Maps account.
18
-
* Get your account key to use in the demo web application.
19
+
* Get your primary key to use in the demo web application.
19
20
20
21
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
21
22
@@ -46,24 +47,27 @@ Create a new Maps account with the following steps:
46
47
47
48
## Get the primary key for your account
48
49
49
-
Once your Maps account is successfully created, retrieve the key that enables you to query the Maps APIs. We recommend using your account's primary key as the subscription key when calling Azure Maps services.
50
+
Once your Maps account is successfully created, retrieve the primary key that enables you to query the Maps APIs.
50
51
51
52
1. Open your Maps account in the portal.
52
53
2. In the settings section, select **Authentication**.
53
54
3. Copy the **Primary Key** to your clipboard. Save it locally to use later in this tutorial.
54
55
56
+
>[!NOTE]
57
+
> If you use the subscription key instead of the primary key, your map won't render properly. Also, for security purposes, it is recommended that you rotate between your primary and secondary keys. To rotate keys, update your app to use the secondary key, deploy, then press the cycle/refresh button beside the primary key to generate a new primary key. The old primary key will be disabled. For more information on key rotation, see [Set up Azure Key Vault with key rotation and auditing](https://docs.microsoft.com/azure/key-vault/secrets/key-rotation-log-monitoring)
58
+
55
59

56
60
57
61
## Download the application
58
62
59
-
1. Go to [interactiveSearch.html](https://github.com/Azure-Samples/AzureMapsCodeSamples/blob/master/AzureMapsCodeSamples/Tutorials/interactiveSearch.html) and click it to view the contents within the GitHub User Interface. Right click on the **Raw** button and copy the content of the file or 'Save as' to download the file.
63
+
1. Go to [interactiveSearch.html](https://github.com/Azure-Samples/AzureMapsCodeSamples/blob/master/AzureMapsCodeSamples/Tutorials/interactiveSearch.html). Copy the content of the file.
60
64
2. Save the contents of this file locally as **AzureMapDemo.html**. Open it in a text editor.
61
65
3. Search for the string `<Your Azure Maps Key>`. Replace it with the **Primary Key** value from the preceding section.
62
66
63
67
## Open the application
64
68
65
69
1. Open the file **AzureMapDemo.html** in a browser of your choice.
66
-
2. Observe the map shown of the City of Los Angeles. Zoom in and out to see how the map automatically renders with more or less information depending on the zoom level.
70
+
2. Observe the map shown of the City of Los Angeles. Zoom in and out to see how the map automatically renders with more or less information depending on the zoom level.
67
71
3. Change the default center of the map. In the **AzureMapDemo.html** file, search for the variable named **center**. Replace the longitude, latitude pair value for this variable with the new values **[-74.0060, 40.7128]**. Save the file and refresh your browser.
68
72
4. Try out the interactive search experience. In the search box on the upper-left corner of the demo web application, search for **restaurants**.
69
73
5. Move your mouse over the list of addresses and locations that appear below the search box. Notice how the corresponding pin on the map pops out information about that location. For privacy of private businesses, fictitious names and addresses are shown.
@@ -82,12 +86,12 @@ The tutorials detail how to use and configure Azure Maps with your account. Don'
82
86
In this quickstart, you created your Azure Maps account and created a demo app. Take a look at the following tutorials to learn about Azure Maps:
83
87
84
88
> [!div class="nextstepaction"]
85
-
> [Search nearby points of interest by using Azure Maps](tutorial-search-location.md)
89
+
> [Search nearby points of interest with Azure Maps](tutorial-search-location.md)
86
90
87
91
For more code examples and an interactive coding experience, see these guides:
88
92
89
93
> [!div class="nextstepaction"]
90
-
> [Find an address by using the Azure Maps search service](how-to-search-for-address.md)
94
+
> [Find an address with Azure Maps search service](how-to-search-for-address.md)
91
95
92
96
> [!div class="nextstepaction"]
93
97
> [Use the Azure Maps Map Control](how-to-use-map-control.md)
Copy file name to clipboardExpand all lines: articles/cognitive-services/bing-visual-search/quickstarts/csharp.md
+90-90Lines changed: 90 additions & 90 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,13 @@ manager: nitinme
9
9
ms.service: cognitive-services
10
10
ms.subservice: bing-visual-search
11
11
ms.topic: quickstart
12
-
ms.date: 12/17/2019
12
+
ms.date: 05/22/2020
13
13
ms.author: scottwhi
14
14
---
15
15
16
16
# Quickstart: Get image insights using the Bing Visual Search REST API and C#
17
17
18
-
This quickstart demonstrates how to upload an image to the Bing Visual Search API and to view the insights that it returns.
18
+
This quickstart demonstrates how to upload an image to the Bing Visual Search API and view the insights that it returns.
19
19
20
20
## Prerequisites
21
21
@@ -37,15 +37,15 @@ This quickstart demonstrates how to upload an image to the Bing Visual Search AP
37
37
usingSystem.Collections.Generic;
38
38
```
39
39
40
-
2. Addvariablesfor your subscription key, endpoint, and path to the image you want to upload. `uriBase` can be the global endpoint below, or the [custom subdomain](../../../cognitive-services/cognitive-services-custom-subdomains.md) endpointdisplayedintheAzureportalfor your resource:
40
+
2. Addvariablesfor your subscription key, endpoint, and path to the image you want to upload. For the `uriBase` value, you can use the global endpoint in the following code, or use the [custom subdomain](../../../cognitive-services/cognitive-services-custom-subdomains.md) endpointdisplayedintheAzureportalfor your resource.
@@ -187,81 +187,81 @@ To upload a local image, you first build the form data to send to the API. The f
187
187
188
188
## Using HttpClient
189
189
190
-
Ifyouuse `HttpClient`, youcanusethe `MultipartFormDataContent` classto build the form data. Just use the following sections of code to replace the corresponding methods in the previous example.
Ifyouuse `HttpClient`, youcanusethe `MultipartFormDataContent` classto build the form data. Use the following sections of code to replace the corresponding methods in the previous example:
0 commit comments