File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
packages/react-google-maps-api/src/components/directions Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -271,14 +271,6 @@ function Directions(): JSX.Element {
271
271
center= {center}
272
272
// optional
273
273
onClick= {onMapClick}
274
- // optional
275
- onLoad= {(map ) => {
276
- console .log (' DirectionsRenderer onLoad map: ' , map);
277
- }}
278
- // optional
279
- onUnmount= {(map ) => {
280
- console .log (' DirectionsRenderer onUnmount map: ' , map);
281
- }}
282
274
>
283
275
{directionsFormValue .destination !== ' ' &&
284
276
directionsFormValue .origin !== ' ' && (
@@ -298,20 +290,6 @@ function Directions(): JSX.Element {
298
290
< DirectionsRenderer
299
291
// required
300
292
options= {directionsResult}
301
- // optional
302
- onLoad= {(directionsRenderer ) => {
303
- console .log (
304
- ' DirectionsRenderer onLoad directionsRenderer: ' ,
305
- directionsRenderer
306
- );
307
- }}
308
- // optional
309
- onUnmount= {(directionsRenderer ) => {
310
- console .log (
311
- ' DirectionsRenderer onUnmount directionsRenderer: ' ,
312
- directionsRenderer
313
- );
314
- }}
315
293
/ >
316
294
)}
317
295
< / GoogleMap>
You can’t perform that action at this time.
0 commit comments