[fix #1047] Fix encoding problem in carto with IE
We could have also use encodeURIComponent(url)
This commit is contained in:
parent
885a479f32
commit
cf9303bd7e
1 changed files with 6 additions and 10 deletions
|
@ -133,16 +133,12 @@ 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
|
map.setView(new L.LatLng(data.lat, data.lon), data.zoom);
|
||||||
}).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);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function jsObject_to_array(qp_list) {
|
function jsObject_to_array(qp_list) {
|
||||||
|
|
Loading…
Reference in a new issue