Skip to content

Commit 6517426

Browse files
committed
Minor improvements to grammar.
1 parent 1147398 commit 6517426

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

articles/azure-maps/how-to-use-image-templates-web-sdk.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -115,24 +115,24 @@ The following sample uses the `marker-arrow` template with a red primary color,
115115
116116
## Create custom reusable templates
117117
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 with different icons 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.
119119
120-
| Name | Return Type | Description |
121-
|-|-|-|
120+
| Name | Return Type | Description |
121+
|------|-------------|-------------|
122122
| `addImageTemplate(templateName: string, template: string, override: boolean)` | | Adds a custom SVG image template to the atlas namespace. |
123123
| `getImageTemplate(templateName: string, scale?: number)`| string | Retrieves an SVG template by name. |
124124
| `getAllImageTemplateNames()` | string[] | Retrieves an SVG template by name. |
125125
126126
SVG image templates support the following placeholder values:
127127
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. |
133133
| `{text}` | The location to render text when used with an HTML Marker. |
134134
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.
136136
137137
<br/>
138138
@@ -481,7 +481,7 @@ This table lists all image templates currently available within the Azure Maps w
481481
482482
**Preloaded image icons**
483483
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.
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 following table.
485485
486486
| icon name | color | secondaryColor |
487487
|-----------|-------|----------------|

0 commit comments

Comments
 (0)