Skip to content

Commit b5843df

Browse files
committed
few more indentations
1 parent c721864 commit b5843df

File tree

2 files changed

+26
-25
lines changed

2 files changed

+26
-25
lines changed

articles/azure-maps/how-to-use-services-module.md

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ The Azure Maps Web SDK provides a *services module*. This module is a helper lib
100100
} else {
101101
resolve(token);
102102
}
103-
});
103+
});
104104
})
105105
}
106106

@@ -123,29 +123,30 @@ The Azure Maps Web SDK provides a *services module*. This module is a helper lib
123123

124124
```javascript
125125
// Search for "1 microsoft way, redmond, wa".
126-
searchURL.searchAddress(atlas.service.Aborter.timeout(10000), '1 microsoft way, redmond, wa').then(response => {
127-
var html = [];
128-
129-
// Display the total results.
130-
html.push('Total results: ', response.summary.numResults, '<br/><br/>');
131-
132-
// Create a table of the results.
133-
html.push('<table><tr><td></td><td>Result</td><td>Latitude</td><td>Longitude</td></tr>');
134-
135-
for(var i=0;i<response.results.length;i++){
136-
html.push('<tr><td>', (i+1), '.</td><td>',
137-
response.results[i].address.freeformAddress,
138-
'</td><td>',
139-
response.results[i].position.lat,
140-
'</td><td>',
141-
response.results[i].position.lon,
142-
'</td></tr>');
143-
}
144-
145-
html.push('</table>');
146-
147-
// Add the resulting HTML to the body of the page.
148-
document.body.innerHTML = html.join('');
126+
searchURL.searchAddress(atlas.service.Aborter.timeout(10000), '1 microsoft way, redmond, wa')
127+
.then(response => {
128+
var html = [];
129+
130+
// Display the total results.
131+
html.push('Total results: ', response.summary.numResults, '<br/><br/>');
132+
133+
// Create a table of the results.
134+
html.push('<table><tr><td></td><td>Result</td><td>Latitude</td><td>Longitude</td></tr>');
135+
136+
for(var i=0;i<response.results.length;i++){
137+
html.push('<tr><td>', (i+1), '.</td><td>',
138+
response.results[i].address.freeformAddress,
139+
'</td><td>',
140+
response.results[i].position.lat,
141+
'</td><td>',
142+
response.results[i].position.lon,
143+
'</td></tr>');
144+
}
145+
146+
html.push('</table>');
147+
148+
// Add the resulting HTML to the body of the page.
149+
document.body.innerHTML = html.join('');
149150
});
150151
```
151152

articles/azure-maps/supported-browsers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The Azure Maps Web SDK provides a helper function called [atlas.isSupported](htt
1717
```JavaScript
1818
if (!atlas.isSupported()) {
1919
alert('Your browser is not supported by Azure Maps');
20-
} else if(!atlas.isSupported(true)) {
20+
} else if (!atlas.isSupported(true)) {
2121
alert('Your browser is supported by Azure Maps, but may have major performance caveats.');
2222
} else {
2323
// Your browser is supported. Add your map code here.

0 commit comments

Comments
 (0)