mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 23:44:47 +02:00
Fix geocoder
This commit is contained in:
+3
-3
@@ -60,9 +60,9 @@ var iD = function(container) {
|
||||
encodeURIComponent(val) + '.jsonp?callback=grid';
|
||||
});
|
||||
|
||||
function grid(resp) {
|
||||
map.setCentre(resp.results[0][0]);
|
||||
}
|
||||
window.grid = function(resp) {
|
||||
map.setCenter([resp.results[0][0].lon, resp.results[0][0].lat]);
|
||||
};
|
||||
|
||||
bar.append('div')
|
||||
.attr('class', 'messages');
|
||||
|
||||
@@ -395,7 +395,7 @@ iD.Map = function(elem, connection) {
|
||||
var a = d3.event.translate,
|
||||
b = translateStart;
|
||||
surface.style(transformProp,
|
||||
'translate3d(' + (a[0] - b[0]) + 'px,' + (a[1] - b[1]) + 'px, 0px)');
|
||||
'translate3d(' + ~~(a[0] - b[0]) + 'px,' + ~~(a[1] - b[1]) + 'px, 0px)');
|
||||
} else {
|
||||
redraw();
|
||||
translateStart = null;
|
||||
|
||||
Reference in New Issue
Block a user