[fix #1047] Fix encoding problem in carto with IE

We could have also use encodeURIComponent(url)
This commit is contained in:
Simon Lehericey 2017-12-06 16:15:28 +01:00
parent 885a479f32
commit cf9303bd7e

View file

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