We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5a9dec commit 1600542Copy full SHA for 1600542
1 file changed
users/static/js/user-map-component.js
@@ -245,9 +245,10 @@ function onMapClick(e) {
245
var markerLocation = e.latlng;
246
marker_new_user = L.marker(markerLocation);
247
map.addLayer(marker_new_user);
248
+ var wrappedLocation = L.latLng(markerLocation.lat, markerLocation.lng).wrap()
249
var user = {
- 'latitude': markerLocation.lat.toFixed(8),
250
- 'longitude': markerLocation.lng.toFixed(8)
+ 'latitude': wrappedLocation.lat.toFixed(8),
251
+ 'longitude': wrappedLocation.lng.toFixed(8)
252
};
253
var popup = getUserFormPopup(user, ADD_USER_MODE);
254
marker_new_user.bindPopup(popup).openPopup()
0 commit comments