pieterv / react-googlemaps

A declarative React interface to Google Maps
MIT License
226 stars 68 forks source link

draggable map #15

Closed mfirry closed 9 years ago

mfirry commented 9 years ago

I can't seem to be able to have a draggable map.

This is how I use it:

          <Map
            initialZoom={3}
            center={new GoogleMapsAPI.LatLng(32.770807, -17.038183)}
            width={1000}
            draggable={true}
            height={1000}>
            {markers}
          </Map>
pieterv commented 9 years ago

Have a look at the examples, https://github.com/pieterv/react-googlemaps/blob/master/examples/markers/app.js#L23-L31, The map is a controlled component like an input in react so you will need to listen for changes and apply them.