//= require jquery.simulate
OSM.Query = function(map) {
- var queryButton = $(".control-query .control-button"),
+ var protocol = document.location.protocol === "https:" ? "https:" : "http:",
+ url = protocol + 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'],
marker;
}
$section.data("ajax", $.ajax({
- url: OSM.OVERPASS_URL,
+ url: url,
method: "POST",
data: {
data: "[timeout:5][out:json];" + query,
$section.find(".loader").stopTime("loading").hide();
$("<li>")
- .text(I18n.t("javascripts.query." + status, { server: OSM.OVERPASS_URL, error: error }))
+ .text(I18n.t("javascripts.query." + status, { server: url, error: error }))
.appendTo($ul);
}
}));
# Whether to require users to agree to the CTs before editing
require_terms_agreed: false
# URL of Overpass instance to use for feature queries
- overpass_url: http://overpass-api.de/api/interpreter
+ overpass_url: "//overpass-api.de/api/interpreter"
development:
<<: *defaults