Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

‎README.md

Lines changed: 6 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /