Skip to content

Commit

Permalink
refactor!: remove obsolete hooks (#219)
Browse files Browse the repository at this point in the history
BREAKING-CHANGE: removed the `useStreetViewPanorama()` and `useDirectionsService()` hooks.
  • Loading branch information
usefulthink committed Feb 15, 2024
1 parent 0db363f commit 69b2373
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 399 deletions.
2 changes: 1 addition & 1 deletion docs/api-reference/hooks/use-api-loading-status.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `useApiIsLoaded` Hook
# `useApiLoadingStatus` Hook

React hook to get the current status of the API Loader. This can be used to react to loading-errors.

Expand Down
61 changes: 0 additions & 61 deletions docs/api-reference/hooks/use-directions-service.md

This file was deleted.

86 changes: 0 additions & 86 deletions docs/api-reference/hooks/use-streetview-panorama.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/guides/interacting-with-google-maps-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ const App = () => (
);
```

Other hooks provide access to different Google Maps API services:

- [useDirectionsService](../api-reference/hooks/use-directions-service.md)
for the [Directions Service](https://developers.google.com/maps/documentation/javascript/directions)
- [useStreetViewPanorama](../api-reference/hooks/use-streetview-panorama.md) for the [Streetview Service](https://developers.google.com/maps/documentation/javascript/streetview)

The [useMapsLibrary](../api-reference/hooks/use-maps-library.md) hook can be
utilized to load other parts of the Google Maps API that are not loaded by default.
For example, the Places Service or the Geocoding Service.
Expand Down
5 changes: 2 additions & 3 deletions docs/table-of-contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@

"items": [
"api-reference/hooks/use-map",
"api-reference/hooks/use-api-is-loaded",
"api-reference/hooks/use-maps-library",
"api-reference/hooks/use-directions-service",
"api-reference/hooks/use-streetview-panorama"
"api-reference/hooks/use-api-is-loaded",
"api-reference/hooks/use-api-loading-status"
]
}
]
Expand Down
30 changes: 0 additions & 30 deletions src/hooks/__tests__/directions-service.test.tsx

This file was deleted.

34 changes: 0 additions & 34 deletions src/hooks/__tests__/street-view-panorama.test.tsx

This file was deleted.

118 changes: 0 additions & 118 deletions src/hooks/directions-service.ts

This file was deleted.

Loading

0 comments on commit 69b2373

Please sign in to comment.