Skip to content

Commit 1474a3a

Browse files
committed
feat: Adds region tags for presenting snippets on DevSite.
1 parent eee0974 commit 1474a3a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

samples/geocoding-simple/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async function initMap() {
3535
// Get the inner map.
3636
innerMap = mapElement.innerMap;
3737

38-
// Set the cursor to crosshair.
38+
// Set map options.
3939
innerMap.setOptions({
4040
mapTypeControl: false,
4141
fullscreenControl: false,
@@ -45,7 +45,6 @@ async function initMap() {
4545
draggableCursor: 'crosshair',
4646
});
4747

48-
4948
geocoder = new google.maps.Geocoder();
5049

5150
const inputText = document.getElementById('address') as HTMLInputElement;
@@ -76,6 +75,7 @@ async function clear() {
7675
responseDiv.style.display = 'none';
7776
}
7877

78+
// [START maps_geocoding_simple_request]
7979
async function geocode(request: google.maps.GeocoderRequest) {
8080
clear();
8181

@@ -94,6 +94,7 @@ async function geocode(request: google.maps.GeocoderRequest) {
9494
alert('Geocode was not successful for the following reason: ' + e);
9595
});
9696
}
97+
// [END maps_geocoding_simple_request]
9798

9899
initMap();
99100
// [END maps_geocoding_simple]

0 commit comments

Comments
 (0)