|
|
@ -182,6 +182,8 @@ function initializeMapForStaff(latitude, longitude, usersLocationText) {
|
|
|
|
setLatLon(event.target.getLatLng().lat, event.target.getLatLng().lng);
|
|
|
|
setLatLon(event.target.getLatLng().lat, event.target.getLatLng().lng);
|
|
|
|
$('#save-group').show();
|
|
|
|
$('#save-group').show();
|
|
|
|
$('#close-button').hide();
|
|
|
|
$('#close-button').hide();
|
|
|
|
|
|
|
|
$('#friendly-location').hide();
|
|
|
|
|
|
|
|
$('#save-for-address').show();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$('#map-modal').on('shown.bs.modal', function(){
|
|
|
|
$('#map-modal').on('shown.bs.modal', function(){
|
|
|
@ -191,4 +193,11 @@ function initializeMapForStaff(latitude, longitude, usersLocationText) {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getFriendlyLocation(latitude, longitude) {
|
|
|
|
|
|
|
|
var URL = 'http://nominatim.openstreetmap.org/reverse?format=json&lat='+ latitude +'&lon='+ longitude +'&zoom=15&addressdetails=1';
|
|
|
|
|
|
|
|
$.getJSON(URL, function(data) {
|
|
|
|
|
|
|
|
$('#friendly-location').text(data.display_name);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
jQuery(document).ready(loadJquery);
|
|
|
|
jQuery(document).ready(loadJquery);
|
|
|
|