X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a32f4c231e678dd02a4728355455547d3d20fe2a..2cfd5b97a83ab27f51e2d44ab832194f098d1eb7:/app/assets/javascripts/index/directions.js diff --git a/app/assets/javascripts/index/directions.js b/app/assets/javascripts/index/directions.js index 5f822b472..1c095a36b 100644 --- a/app/assets/javascripts/index/directions.js +++ b/app/assets/javascripts/index/directions.js @@ -145,10 +145,10 @@ OSM.Directions = function (map) { to = endpoints[1].latlng, routeFrom = "", routeTo = ""; - if(from){ + if (from) { routeFrom = from.lat + "," + from.lng; } - if(to){ + if (to) { routeTo = to.lat + "," + to.lng; }