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: README.md
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,12 +68,29 @@ First, copy `.env.sample` file to `.env`, and ensure the configuration values ar
68
68
|`REACT_APP_API_ROOT`| <https://planetarycomputer-staging.microsoft.com> | The root URL for the STAC API, either prod, staging or a local instance. If the URL ends in 'stac', this is a special case that is handled by replacing 'stac' with the target service, e.g. 'data' or 'sas'
69
69
|`REACT_APP_TILER_ROOT`| Optional | The root URL for the data tiler API, if not hosted from the domain of the STAC API.
70
70
|`REACT_APP_IMAGE_API_ROOT`| PC APIs pcfunc endpoint | The root URL for the image data API for animations.
71
-
|`REACT_APP_AZMAPS_KEY`| Retrieve from Azure Portal | The key used to authenticate the Azure Maps inset map on a dataset detail page.
71
+
|`REACT_APP_AZMAPS_CLIENT_ID`| Retrieve from Azure Portal | The Client ID used to authenticate against Azure Maps.
72
72
|`REACT_APP_HUB_URL`| Optional. URL to root Hub instance | Used to enable a request to launch the Hub with a specific git hosted file.
73
73
|`REACT_APP_ONEDS_TENANT_KEY`| Lookup at <https://1dswhitelisting.azurewebsites.net/> | Telemetry key (not needed for dev)
74
74
|`REACT_APP_AUTH_URL`| Optional. URL to root pc-session-api instance | Used to enable login work.
75
75
76
-
Run `./scripts/server` to launch a development server.
76
+
Run `./scripts/server --api` to launch a development server with a local Azure Functions host running.
77
+
78
+
#### Azure Maps
79
+
80
+
In the local development setups, the Azure Maps token is generated using the local developer identity. Be sure to
81
+
`az login` and `az account set --subscription "Planetary Computer"` to ensure the correct token is generated. Your identity
82
+
will also need the "Azure Maps Search and Render Data Reader" permission, which can be set with:
83
+
84
+
```sh
85
+
USER_NAME=$(az account show --query user.name -o tsv)
86
+
az role assignment create \
87
+
--assignee "$USER_NAME" \
88
+
--role "Azure Maps Search and Render Data Reader" \
0 commit comments