fullstackreact / google-maps-react

Companion code to the "How to Write a Google Maps React Component" Tutorial
https://www.fullstackreact.com/articles/how-to-write-a-google-maps-react-component/
MIT License
1.64k stars 819 forks source link

Circle component #169

Open h0rhay opened 6 years ago

h0rhay commented 6 years ago

Hi, Lovely lib, works really well :) Any plans to add the Circle component? Or I'd be happy to fork it, if you could spare a few mins for some advice.. Many thanks George

auser commented 6 years ago

George,

Sure. How can I help?

@h0rhay

hibikiyoyo commented 6 years ago

How can i make a Circle component in Map and resize or drag it ? . I did it with google map api but dont know how to use this in google maps react .


var cityCircle = new google.maps.Circle({
            strokeColor: '#FF0000',
            strokeOpacity: 0.8,
            strokeWeight: 2,
            fillColor: '#FF0000',
            fillOpacity: 0.35,
            map: map,
            center: {lat: 44.5452, lng: -78.5389},
            radius: 100000 ,
            editable: true,
          draggable: true
          });
}`
ghost commented 6 years ago

+1

v-stickykeys commented 6 years ago

Resizable and draggable: https://github.com/fullstackreact/google-maps-react/pull/224 @hibikiyoyo