googlemaps / googlemaps/js-api-loader

unable to load map library in middleware since v2

Open
#1,143 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.