@@ -100,7 +100,7 @@ The Azure Maps Web SDK provides a *services module*. This module is a helper lib
100
100
} else {
101
101
resolve(token);
102
102
}
103
- });
103
+ });
104
104
})
105
105
}
106
106
@@ -123,29 +123,30 @@ The Azure Maps Web SDK provides a *services module*. This module is a helper lib
123
123
124
124
```javascript
125
125
// 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( ' ' );
149
150
});
150
151
```
151
152
0 commit comments