react-google-maps icon indicating copy to clipboard operation
react-google-maps copied to clipboard

Polygon doesn't have a method setOptions

Open bcano-office opened this issue 6 years ago • 2 comments

I am trying to change polygon options using ref but I found that there is no method setOptions even though original google map javascript library has this.

https://developers.google.com/maps/documentation/javascript/reference/#Polygon

Is there any special reason that setOptions method can't be added inside it?

bcano-office avatar Sep 18 '19 02:09 bcano-office

hello @superWsac The repo of this project is unmaintained more than a year, and we had build new version https://www.npmjs.com/package/@react-google-maps/api

We had rewrite it to TypeScript, and updating it frequently: https://github.com/JustFly1984/react-google-maps-api/tree/master/packages/react-google-maps-api You can enjoy autocomplete.

You can see our docs: https://react-google-maps-api-docs.netlify.com/

Also a lot of examples: https://react-google-maps-api-gatsby-demo.netlify.com/ https://github.com/JustFly1984/react-google-maps-api/tree/master/packages/react-google-maps-api-gatsby-example/src/examples

The bundle size is much smaller: https://bundlephobia.com/result?p=@react-google-maps/[email protected]

Enjoy!

JustFly1984 avatar Sep 18 '19 12:09 JustFly1984

https://www.npmjs.com/package/easy-drawing another view

langer-man avatar Sep 22 '19 11:09 langer-man