|
@@ -9,7 +9,7 @@ export default (map, onMove) => {
|
|
marker.current.setMap(null);
|
|
marker.current.setMap(null);
|
|
}
|
|
}
|
|
marker.current = new google.maps.Marker({ map: map.current, position: latLng });
|
|
marker.current = new google.maps.Marker({ map: map.current, position: latLng });
|
|
- onMove({ lat: latLng.lat(), lng: latLng.lng() });
|
|
|
|
|
|
+ onMove({ lat: latLng.lat(), lng: latLng.lng() }, marker.current);
|
|
});
|
|
});
|
|
|
|
|
|
return () => { google.maps.event.removeListener(listener); }
|
|
return () => { google.maps.event.removeListener(listener); }
|