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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy