Merge branch 'dev'

This commit is contained in:
gregoirenovel 2017-12-06 16:25:25 +01:00
commit 42b011df8b

View file

@ -133,14 +133,10 @@ function get_position() {
} }
function get_address_point(request) { function get_address_point(request) {
$.ajax({ $.get('/ban/address_point', { request: request })
url: '/ban/address_point?request=' + request, .done(function (data) {
dataType: 'json', if (data.lat !== null) {
async: true
}).done(function (data) {
if (data.lat != null) {
map.setView(new L.LatLng(data.lat, data.lon), data.zoom); map.setView(new L.LatLng(data.lat, data.lon), data.zoom);
//L.marker([data.lat, data.lon], {icon: icon}).addTo(map);
} }
}); });
} }