File tree Expand file tree Collapse file tree 9 files changed +28
-13
lines changed
ui-kit-place-search-nearby Expand file tree Collapse file tree 9 files changed +28
-13
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ async function init(): Promise<void> {
6363 searchPlaces ( ) ;
6464}
6565/* [END maps_ui_kit_place_search_nearby_event] */
66+ /* [START maps_ui_kit_place_search_nearby_function] */
6667// The searchPlaces function is called when the user changes the type select or when the page loads.
6768async function searchPlaces ( ) {
6869 // Close the info window and clear the markers.
@@ -85,6 +86,7 @@ async function searchPlaces() {
8586 placeSearchQuery . includedTypes = [ typeSelect . value ] ;
8687 }
8788}
89+ /* [END maps_ui_kit_place_search_nearby_function] */
8890
8991// The addMarkers function is called when the place search element loads.
9092async function addMarkers ( ) {
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ async function init() {
4949 searchPlaces ( ) ;
5050}
5151/* [END maps_ui_kit_place_search_nearby_event] */
52+ /* [START maps_ui_kit_place_search_nearby_function] */
5253// The searchPlaces function is called when the user changes the type select or when the page loads.
5354async function searchPlaces ( ) {
5455 // Close the info window and clear the markers.
@@ -70,6 +71,7 @@ async function searchPlaces() {
7071 placeSearchQuery . includedTypes = [ typeSelect . value ] ;
7172 }
7273}
74+ /* [END maps_ui_kit_place_search_nearby_function] */
7375// The addMarkers function is called when the place search element loads.
7476async function addMarkers ( ) {
7577 // Import the necessary libraries from the Google Maps API.
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ async function init(): Promise<void> {
6363 searchPlaces ( ) ;
6464}
6565/* [END maps_ui_kit_place_search_nearby_event] */
66+ /* [START maps_ui_kit_place_search_nearby_function] */
6667// The searchPlaces function is called when the user changes the type select or when the page loads.
6768async function searchPlaces ( ) {
6869 // Close the info window and clear the markers.
@@ -85,6 +86,7 @@ async function searchPlaces() {
8586 placeSearchQuery . includedTypes = [ typeSelect . value ] ;
8687 }
8788}
89+ /* [END maps_ui_kit_place_search_nearby_function] */
8890
8991// The addMarkers function is called when the place search element loads.
9092async function addMarkers ( ) {
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ async function init() {
4949 searchPlaces ( ) ;
5050}
5151/* [END maps_ui_kit_place_search_nearby_event] */
52+ /* [START maps_ui_kit_place_search_nearby_function] */
5253// The searchPlaces function is called when the user changes the type select or when the page loads.
5354async function searchPlaces ( ) {
5455 // Close the info window and clear the markers.
@@ -70,6 +71,7 @@ async function searchPlaces() {
7071 placeSearchQuery . includedTypes = [ typeSelect . value ] ;
7172 }
7273}
74+ /* [END maps_ui_kit_place_search_nearby_function] */
7375// The addMarkers function is called when the place search element loads.
7476async function addMarkers ( ) {
7577 // Import the necessary libraries from the Google Maps API.
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ async function init(): Promise<void> {
7171 searchPlaces ( ) ;
7272}
7373/* [END maps_ui_kit_place_search_text_event] */
74+ /* [START maps_ui_kit_place_search_text_function] */
7475// The searchPlaces function is called when the user changes the query input or when the page loads.
7576async function searchPlaces ( ) {
7677 // Close the info window and clear the markers.
@@ -91,6 +92,7 @@ async function searchPlaces() {
9192 placeSearchQuery . textQuery = queryInput . value ;
9293 }
9394}
95+ /* [END maps_ui_kit_place_search_text_function] */
9496
9597// The addMarkers function is called when the place search element loads.
9698async function addMarkers ( ) {
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ async function init() {
5555 searchPlaces ( ) ;
5656}
5757/* [END maps_ui_kit_place_search_text_event] */
58+ /* [START maps_ui_kit_place_search_text_function] */
5859// The searchPlaces function is called when the user changes the query input or when the page loads.
5960async function searchPlaces ( ) {
6061 // Close the info window and clear the markers.
@@ -74,6 +75,7 @@ async function searchPlaces() {
7475 placeSearchQuery . textQuery = queryInput . value ;
7576 }
7677}
78+ /* [END maps_ui_kit_place_search_text_function] */
7779// The addMarkers function is called when the place search element loads.
7880async function addMarkers ( ) {
7981 // Import the necessary libraries from the Google Maps API.
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ async function init(): Promise<void> {
7171 searchPlaces ( ) ;
7272}
7373/* [END maps_ui_kit_place_search_text_event] */
74+ /* [START maps_ui_kit_place_search_text_function] */
7475// The searchPlaces function is called when the user changes the query input or when the page loads.
7576async function searchPlaces ( ) {
7677 // Close the info window and clear the markers.
@@ -91,6 +92,7 @@ async function searchPlaces() {
9192 placeSearchQuery . textQuery = queryInput . value ;
9293 }
9394}
95+ /* [END maps_ui_kit_place_search_text_function] */
9496
9597// The addMarkers function is called when the place search element loads.
9698async function addMarkers ( ) {
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ async function init() {
5555 searchPlaces ( ) ;
5656}
5757/* [END maps_ui_kit_place_search_text_event] */
58+ /* [START maps_ui_kit_place_search_text_function] */
5859// The searchPlaces function is called when the user changes the query input or when the page loads.
5960async function searchPlaces ( ) {
6061 // Close the info window and clear the markers.
@@ -74,6 +75,7 @@ async function searchPlaces() {
7475 placeSearchQuery . textQuery = queryInput . value ;
7576 }
7677}
78+ /* [END maps_ui_kit_place_search_text_function] */
7779// The addMarkers function is called when the place search element loads.
7880async function addMarkers ( ) {
7981 // Import the necessary libraries from the Google Maps API.
You can’t perform that action at this time.
0 commit comments