Skip to content

Commit 1600542

Browse files
committed
Address #24.
1 parent b5a9dec commit 1600542

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

users/static/js/user-map-component.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,10 @@ function onMapClick(e) {
245245
var markerLocation = e.latlng;
246246
marker_new_user = L.marker(markerLocation);
247247
map.addLayer(marker_new_user);
248+
var wrappedLocation = L.latLng(markerLocation.lat, markerLocation.lng).wrap()
248249
var user = {
249-
'latitude': markerLocation.lat.toFixed(8),
250-
'longitude': markerLocation.lng.toFixed(8)
250+
'latitude': wrappedLocation.lat.toFixed(8),
251+
'longitude': wrappedLocation.lng.toFixed(8)
251252
};
252253
var popup = getUserFormPopup(user, ADD_USER_MODE);
253254
marker_new_user.bindPopup(popup).openPopup()

0 commit comments

Comments
 (0)