X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/673b58f96f3acfd0281c62a2a7f080825b6fb28b..6ed749e7ebad5eeff04ccf1a8f33c078b9f46031:/app/assets/javascripts/index/query.js?ds=sidebyside diff --git a/app/assets/javascripts/index/query.js b/app/assets/javascripts/index/query.js index c01caba70..6869e19f6 100644 --- a/app/assets/javascripts/index/query.js +++ b/app/assets/javascripts/index/query.js @@ -1,9 +1,9 @@ //= require jquery.simulate -OSM.Query = function(map) { +OSM.Query = function (map) { var url = OSM.OVERPASS_URL, queryButton = $(".control-query .control-button"), - uninterestingTags = ['source', 'source_ref', 'source:ref', 'history', 'attribution', 'created_by', 'tiger:county', 'tiger:tlid', 'tiger:upload_uuid', 'KSJ2:curve_id', 'KSJ2:lat', 'KSJ2:lon', 'KSJ2:coordinate', 'KSJ2:filename', 'note:ja'], + uninterestingTags = ["source", "source_ref", "source:ref", "history", "attribution", "created_by", "tiger:county", "tiger:tlid", "tiger:upload_uuid", "KSJ2:curve_id", "KSJ2:lat", "KSJ2:lon", "KSJ2:coordinate", "KSJ2:filename", "note:ja"], marker; var featureStyle = { @@ -55,7 +55,7 @@ OSM.Query = function(map) { var geometry = $(this).data("geometry"); if (geometry) map.removeLayer(geometry); - if (!$(e.target).is('a')) { + if (!$(e.target).is("a")) { $(this).find("a").simulate("click", e); } } @@ -178,9 +178,9 @@ OSM.Query = function(map) { url: url, method: "POST", data: { - data: "[timeout:10][out:json];" + query, + data: "[timeout:10][out:json];" + query }, - success: function(results) { + success: function (results) { var elements; $section.find(".loader").stopTime("loading").hide(); @@ -237,7 +237,7 @@ OSM.Query = function(map) { .appendTo($ul); } }, - error: function(xhr, status, error) { + error: function (xhr, status, error) { $section.find(".loader").stopTime("loading").hide(); $("