googlemaps / googlemaps/js-api-loader
unable to load map library in middleware since v2
Open
type: feature request
wontfix
- Dominant language
- TypeScript
- Stars
- 449
- Forks
- 74
- Avg merge
- 1m
- Merged PRs (30d)
- 21
Description
Hi Team,
We are using following configuration to load google map library in middleware layer of application to avoid exposing API key in network tab of browser.
```
new Loader({
apiKey: "",
url: "/google-maps/map/maps/api/js",
language: LANGUAGES_GOOGLE[locale],
libraries: ["marker", "places"]
})
```
but since v2, setOptions option function we cannot do that I think it’s due to the missing URL property.
Are you planning to add URL property again?
or is there any possible solution to solve this problem
Thanks!
Contributor guide
Assessment
This issue has not been assessed yet.