Skip to content

Commit fe84326

Browse files
Merge pull request #218538 from stevemunk/SM-RestSDK-JS-Update
Update how-to-dev-guide-js-sdk.md move section "Install the search package" after "Create a Node.js project"
2 parents b94bea6 + ac48238 commit fe84326

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

articles/azure-maps/how-to-dev-guide-js-sdk.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ The Azure Maps JavaScript/TypeScript REST SDK (JavaScript SDK) supports searchin
3030
> az maps account create --kind "Gen2" --account-name "myMapAccountName" --resource-group "<resource group>" --sku "G2"
3131
> ```
3232
33+
## Create a Node.js project
34+
35+
The example below creates a new directory then a Node.js program named _mapsDemo_ using npm:
36+
37+
```powershell
38+
mkdir mapsDemo
39+
cd mapsDemo
40+
npm init
41+
```
42+
3343
## Install the search package
3444

3545
To use Azure Maps JavaScript SDK, you'll need to install the search package. Each of the Azure Maps services including search, routing, rendering and geolocation are each in their own package.
@@ -55,16 +65,6 @@ mapsDemo
5565
| [Search][search readme] | [@azure/maps-search][search package] | [search samples][search sample] |
5666
| [Route][js route readme] | [@azure-rest/maps-route][js route package] | [route samples][js route sample] |
5767

58-
## Create a Node.js project
59-
60-
The example below creates a new directory then a Node.js program named _mapsDemo_ using npm:
61-
62-
```powershell
63-
mkdir mapsDemo
64-
cd mapsDemo
65-
npm init
66-
```
67-
6868
## Create and authenticate a MapsSearchClient
6969

7070
You'll need a `credential` object for authentication when creating the `MapsSearchClient` object used to access the Azure Maps search APIs. You can use either an Azure Active Directory (Azure AD) credential or an Azure subscription key to authenticate. For more information on authentication, see [Authentication with Azure Maps][authentication].

0 commit comments

Comments
 (0)