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-functions/configure-networking-how-to.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,8 +60,8 @@ To secure the storage for an existing function app:
60
60
| Setting name | Value | Comment |
61
61
|----|----|----|
62
62
|`AzureWebJobsStorage`| Storage connection string | This is the connection string for a secured storage account. |
63
-
|`WEBSITE_CONTENTAZUREFILECONNECTIONSTRING`| Storage connection string | This is the connection string for a secured storage account. |
64
-
|`WEBSITE_CONTENTSHARE`| File share | The name of the file share created in the secured storage account where the project deployment files reside. |
63
+
|`WEBSITE_CONTENTAZUREFILECONNECTIONSTRING`| Storage connection string | This is the connection string for a secured storage account.This setting is required for Consumption and Premium plan apps on both Windows and Linux. It's not required for Dedicated plan apps, which aren't dynamically scaled by Functions.|
64
+
|`WEBSITE_CONTENTSHARE`| File share | The name of the file share created in the secured storage account where the project deployment files reside.This setting is required for Consumption and Premium plan apps on both Windows and Linux. It's not required for Dedicated plan apps, which aren't dynamically scaled by Functions.|
65
65
|`WEBSITE_CONTENTOVERVNET`| 1 | A value of 1 enables your function app to scale when you have your storage account restricted to a virtual network. You should enable this setting when restricting your storage account to a virtual network. |
66
66
67
67
1. Select **Save** to save the application settings. Changing app settings causes the app to restart.
Copy file name to clipboardExpand all lines: articles/azure-maps/how-to-use-image-templates-web-sdk.md
+29-32Lines changed: 29 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,22 @@
1
1
---
2
2
title: Image templates in the Azure Maps Web SDK | Microsoft Azure Maps
3
3
description: Learn how to add image icons and pattern-filled polygons to maps by using the Azure Maps Web SDK. View available image and fill pattern templates.
4
-
author: eriklindeman
5
-
ms.author: eriklind
4
+
author: sinnypan
5
+
ms.author: sipa
6
6
ms.date: 8/6/2019
7
7
ms.topic: how-to
8
8
ms.service: azure-maps
9
9
services: azure-maps
10
-
ms.custom: codepen, devx-track-js
10
+
ms.custom: devx-track-js
11
11
---
12
12
13
13
# How to use image templates
14
14
15
15
Images can be used with HTML markers and various layers within the Azure Maps web SDK:
16
16
17
-
- Symbol layers can render points on the map with an image icon. Symbols can also be rendered along a lines path.
18
-
- Polygon layers can be rendered with a fill pattern image.
19
-
- HTML markers can render points using images and other HTML elements.
17
+
- Symbol layers can render points on the map with an image icon. Symbols can also be rendered along a lines path.
18
+
- Polygon layers can be rendered with a fill pattern image.
19
+
- HTML markers can render points using images and other HTML elements.
20
20
21
21
In order to ensure good performance with layers, load the images into the map image sprite resource before rendering. The [IconOptions](/javascript/api/azure-maps-control/atlas.iconoptions), of the SymbolLayer, preloads a couple of marker images in a handful of colors into the map image sprite, by default. These marker images and more are available as SVG templates. They can be used to create images with custom scales, or used as a customer primary and secondary color. In total there are 42 image templates provided: 27 symbol icons and 15 polygon fill patterns.
22
22
@@ -35,20 +35,20 @@ The following code shows how to create an image from one of the built-in templat
Once an image template is loaded into the map image sprite, it can be rendered as a symbol in a symbol layer by referencing the image resource ID in the `image` option of the `iconOptions`.
50
50
51
-
The following sample renders a symbol layer using the `marker-flat` image template with a teal primary color and a white secondary color.
51
+
The following sample renders a symbol layer using the `marker-flat` image template with a teal primary color and a white secondary color.
52
52
53
53
<br/>
54
54
@@ -59,9 +59,9 @@ The following sample renders a symbol layer using the `marker-flat` image templa
59
59
60
60
## Use an image template along a lines path
61
61
62
-
Once an image template is loaded into the map image sprite, it can be rendered along the path of a line by adding a LineString to a data source and using a symbol layer with a `lineSpacing`option and by referencing the ID of the image resource in the `image` option of th `iconOptions`.
62
+
Once an image template is loaded into the map image sprite, it can be rendered along the path of a line by adding a LineString to a data source and using a symbol layer with a `lineSpacing`option and by referencing the ID of the image resource in the `image` option of th `iconOptions`.
63
63
64
-
The following sample renders a pink line on the map and uses a symbol layer using the `car` image template with a dodger blue primary color and a white secondary color.
64
+
The following sample renders a pink line on the map and uses a symbol layer using the `car` image template with a dodger blue primary color and a white secondary color.
65
65
66
66
<br/>
67
67
@@ -87,7 +87,7 @@ The following sample renders a polygon layer using the `dot` image template with
87
87
</iframe>
88
88
89
89
> [!TIP]
90
-
> Setting the secondary color of fill patterns makes it easier to see the underlying map will still providing the primary pattern.
90
+
> Setting the secondary color of fill patterns makes it easier to see the underlying map will still providing the primary pattern.
91
91
92
92
## Use an image template with an HTML marker
93
93
@@ -102,9 +102,9 @@ The following sample uses the `marker-arrow` template with a red primary color,
102
102
(<a href='https://codepen.io/azuremaps'>@azuremaps</a>) on <a href='https://codepen.io'>CodePen</a>.
103
103
</iframe>
104
104
105
-
106
105
> [!TIP]
107
106
> Image templates can be used outside of the map too. The getImageTemplate funciton returns an SVG string that has placeholders; `{color}`, `{secondaryColor}`, `{scale}`, `{text}`. Replace these placeholder values to create a valid SVG string. You can then either add the SVG string directly to the HTML DOM or convert it into a data URI and insert it into an image tag. For example:
107
+
>
108
108
> ```JavaScript
109
109
>//Retrieve an SVG template and replace the placeholder values.
@@ -115,24 +115,24 @@ The following sample uses the `marker-arrow` template with a red primary color,
115
115
116
116
## Create custom reusable templates
117
117
118
-
If your application uses the same icon with different icons or if you are creating a module that adds additional image templates, you can easily add and retrieve these icons from the Azure Maps web SDK. Use the following static functions on the `atlas` namespace.
118
+
If your application uses the same icon within different modules or if you're creating a module that adds more image templates, you can easily add and retrieve these icons from the Azure Maps web SDK. Use the following static functions on the `atlas` namespace.
119
119
120
-
| Name | Return Type | Description |
121
-
|-|-|-|
120
+
| Name | Return Type | Description |
121
+
|------|-------------|-------------|
122
122
| `addImageTemplate(templateName: string, template: string, override: boolean)` | | Adds a custom SVG image template to the atlas namespace. |
123
123
| `getImageTemplate(templateName: string, scale?: number)`| string | Retrieves an SVG template by name. |
124
124
| `getAllImageTemplateNames()` | string[] | Retrieves an SVG template by name. |
125
125
126
126
SVG image templates support the following placeholder values:
127
127
128
-
| Placeholder | Description |
129
-
|-|-|
130
-
| `{color}` | The primary color. |
131
-
| `{secondaryColor}` | The secondary color. |
132
-
| `{scale}` | The SVG image is converted to an png image when added to the map image sprite. This placeholder can be used to scale a template before it is converted to ensure it renders clearly. |
128
+
| Placeholder | Description |
129
+
|-------------|--------------------|
130
+
| `{color}`| The primary color. |
131
+
| `{secondaryColor}` | The secondary color. |
132
+
| `{scale}` | The SVG image is converted to an png image when added to the map image sprite. This placeholder can be used to scale a template before it's converted to ensure it renders clearly. |
133
133
| `{text}` | The location to render text when used with an HTML Marker. |
134
134
135
-
The following example shows how to take an SVG template, and add it to the Azure Maps web SDK as a reusable icon template.
135
+
The following example shows how to take an SVG template, and add it to the Azure Maps web SDK as a reusable icon template.
136
136
137
137
<br/>
138
138
@@ -356,7 +356,6 @@ This table lists all image templates currently available within the Azure Maps w
356
356
:::column-end:::
357
357
:::row-end:::
358
358
359
-
360
359
**Polygon fill pattern templates**
361
360
362
361
:::row:::
@@ -481,7 +480,7 @@ This table lists all image templates currently available within the Azure Maps w
481
480
482
481
**Preloaded image icons**
483
482
484
-
The map preloads a set of icons into the maps image sprite using the `marker`, `pin`, and `pin-round` templates. These icon names and their color values are listed in the table below.
483
+
The map preloads a set of icons into the maps image sprite using the `marker`, `pin`, and `pin-round` templates. These icon names and their color values are listed in the following table.
485
484
486
485
| icon name | color | secondaryColor |
487
486
|-----------|-------|----------------|
@@ -497,7 +496,6 @@ The map preloads a set of icons into the maps image sprite using the `marker`, `
497
496
| `pin-round-darkblue` | `#003963` | `#ffffff` |
498
497
| `pin-round-red` | `#ef4c4c` | `#ffffff` |
499
498
500
-
501
499
## Try it now tool
502
500
503
501
With the following tool, you can render the different built-in image templates in various ways and customize the primary and secondary colors and scale.
@@ -517,8 +515,7 @@ Learn more about the classes and methods used in this article:
Copy file name to clipboardExpand all lines: articles/cognitive-services/Computer-vision/use-case-dwell-time.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ ms.author: pafarley
15
15
16
16
# Overview: Monitor dwell time in front of displays with Spatial Analysis
17
17
18
-
Spatial Analysis can provide real-time information about how long customers spend in front of a display in a retail store. The service monitors the length of time customers spend in a zone you specif. You can use this information to track customer engagement with promotions/displays within a store or understand customers' preference toward specific products.
18
+
Spatial Analysis can provide real-time information about how long customers spend in front of a display in a retail store. The service monitors the length of time customers spend in a zone you specify. You can use this information to track customer engagement with promotions/displays within a store or understand customers' preference toward specific products.
19
19
20
20
:::image type="content" source="media/use-cases/dwell-time.jpg" alt-text="Photo of a person in a warehouse with stacks of boxes.":::
Copy file name to clipboardExpand all lines: articles/virtual-machines/linux/mac-create-ssh-keys.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ az vm create \
80
80
--ssh-key-values mysshkey.pub
81
81
```
82
82
83
-
If you want to use multiple SSH keys with your VM, you can enter them in a space-separated list, like this `--ssh-key-values sshkey-desktop.pub sshkey-laptop.pub`.
83
+
If you want to use multiple SSH keys with your VM, you can enter them in a space-separated list, like this `--ssh-key-values sshkey-desktop.pub, sshkey-laptop.pub`.
0 commit comments