Skip to content

Commit a9f38f4

Browse files
authored
Merge pull request #492 from YaakovHatam/patch-1
added drag end example function closes #487
2 parents 84da846 + c8dc31d commit a9f38f4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: README.md

+6
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,12 @@ You can also pass any other `props` you want with the `<Marker />`. It will be p
304304

305305
The marker component can also accept a child InfoMarker component for situations where there is only 1 marker and 1 infowindow.
306306

307+
```javascript
308+
moveMarker(props, marker, e) {
309+
console.log(e.latLng.lat(), e.latLng.lng()) // get the new coordinates after drag end
310+
}
311+
```
312+
307313
```javascript
308314
<Marker
309315
title="Location"

0 commit comments

Comments
 (0)