File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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]
7979async 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
9899initMap ( ) ;
99100// [END maps_geocoding_simple]
You can’t perform that action at this time.
0 commit comments