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

How to make a circle?

Open miliu99 opened this issue 8 years ago • 5 comments

Does this map support a circle? I tried this code, and it doesn't work.

<Circle center={center} radius={100000} strokeColor="#0000FF" strokeOpacity={0.2} strokeWeight={1} fillColor="#0000FF" fillOpacity={0.1}/>

What did I miss? Can somebody add an example?

miliu99 avatar Oct 03 '18 03:10 miliu99

Just merged some new documentation in. Lemme know if this helps. If not, feel free to reopen the commit.

auser avatar Oct 07 '18 18:10 auser

Just want to let you know that the latest 2.0.2 doesn't seem to be working with Circles.

On Sun, Oct 7, 2018 at 1:19 PM Ari [email protected] wrote:

Closed #263 https://github.com/fullstackreact/google-maps-react/issues/263.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fullstackreact/google-maps-react/issues/263#event-1889115510, or mute the thread https://github.com/notifications/unsubscribe-auth/AEsr428Mj_XmPXPaFW5EAvt6fm-iWeEdks5uikXHgaJpZM4XFOSk .

miliu99 avatar Oct 08 '18 04:10 miliu99

It appears that the circles in 2.0.2 is working now. Thanks!

miliu99 avatar Dec 05 '18 04:12 miliu99

It appears that the circles in 2.0.2 is working now. Thanks!

How are you getting it to work? Circle.js isn't even included in the most updated npm package

DaskJeeves avatar Dec 17 '18 23:12 DaskJeeves

it doesnt work. even Polygon example doesn't work with npm 2.0.2 .. 'Polygon' is not defined react/jsx-no-undef are there additional imports?

cernoel avatar Jan 06 '19 14:01 cernoel