Skip to content

which version of react-leaflet-google-layer for react-leafet 2.7.0 #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kashi3568 opened this issue Jun 15, 2021 · 3 comments
Open

Comments

@kashi3568
Copy link

No description provided.

@aviklai
Copy link
Owner

aviklai commented Jun 15, 2021

@kashi3568 Hi,

The latest available version for react-leaflet v2 is v1.1.5

@kashi3568
Copy link
Author

@aviklai
Thanks ,
what is the prop name for passing the google api key?
is it same as in latest version apiKey?

@kashi3568 kashi3568 reopened this Jun 15, 2021
@aviklai
Copy link
Owner

aviklai commented Jun 15, 2021

You can see the example here:
https://github.com/aviklai/react-leaflet-google-layer/tree/v1

You can pass the api key using the googleMapsLoaderConf prop, like this:
<ReactLeafletGoogleLayer googleMapsLoaderConf={{KEY: 'YOUR_API_KEY'}} />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants