mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Convert tabs to spaces
This commit is contained in:
@@ -346,9 +346,9 @@ iD.Map = function(context) {
|
||||
vZoomDiff = Math.log(Math.abs(vFactor)) / Math.LN2,
|
||||
newZoom = map.zoom() - Math.max(hZoomDiff, vZoomDiff);
|
||||
|
||||
if(newZoom > 19){
|
||||
newZoom = 19;
|
||||
}
|
||||
if(newZoom > 19){
|
||||
newZoom = 19;
|
||||
}
|
||||
|
||||
map.centerZoom(extent.center(), newZoom);
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ iD.ui.geocoder = function() {
|
||||
function keydown() {
|
||||
if (d3.event.keyCode !== 13) return;
|
||||
d3.event.preventDefault();
|
||||
var searchVal = this.value;
|
||||
var searchVal = this.value;
|
||||
d3.json('http://nominatim.openstreetmap.org/search/' +
|
||||
encodeURIComponent(searchVal) + '?limit=10&format=json', function(err, resp) {
|
||||
if (err) return hide();
|
||||
|
||||
Reference in New Issue
Block a user