Skip to content
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

Integrate the google-maps-react with Typescript config #477

Closed
Vijayan-Murugan opened this issue Sep 16, 2020 · 4 comments
Closed

Integrate the google-maps-react with Typescript config #477

Vijayan-Murugan opened this issue Sep 16, 2020 · 4 comments

Comments

@Vijayan-Murugan
Copy link

Am trying to Integrate the google-maps-react with Typescript config always am getting the props error like zoom is not there. I have to take a look at that props attributes are not there in that Map, Markers could you help me out, please. "google-maps-react": "^2.0.6",

image
image

@naupaw
Copy link

naupaw commented Sep 17, 2020

I simply put /** @ts-ignore */ above every props to skip type checking.

ex:

<Marker
  /** @ts-ignore */
  position={position}
  draggable={true}
/>

there are some pull request on #443 but never get any update from author.

@Vijayan-Murugan
Copy link
Author

Vijayan-Murugan commented Sep 21, 2020

@pedox Thanks a lot you have saved my day. it's working fine.

image

the result I have shared with you. it will help for others too. see below
image

@Vijayan-Murugan
Copy link
Author

Vijayan-Murugan commented Sep 21, 2020 via email

@Vijayan-Murugan
Copy link
Author

The issue has resolved I have attached my code what I have written. so hopefully this will help others too.

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