From 4b75d41f864b9d127aa88c962b7ce849ee3b0b51 Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Wed, 19 Nov 2014 14:59:30 +0100 Subject: [PATCH] [enh][oscar_template] loading map informations from overpass-api --- searx/engines/openstreetmap.py | 4 + searx/static/oscar/img/loader.gif | Bin 0 -> 14190 bytes searx/static/oscar/js/scripts.js | 84 +++++++++++++++++- .../templates/oscar/result_templates/map.html | 36 +++++++- 4 files changed, 120 insertions(+), 4 deletions(-) create mode 100644 searx/static/oscar/img/loader.gif diff --git a/searx/engines/openstreetmap.py b/searx/engines/openstreetmap.py index db0fbfe75..f727ca8ea 100644 --- a/searx/engines/openstreetmap.py +++ b/searx/engines/openstreetmap.py @@ -39,6 +39,9 @@ def response(resp): url = result_base_url.format(osm_type=osm_type, osm_id=r['osm_id']) + osm = {'type':osm_type, + 'id':r['osm_id']} + geojson = r.get('geojson') # if no geojson is found and osm_type is a node, add geojson Point @@ -82,6 +85,7 @@ def response(resp): 'boundingbox': r['boundingbox'], 'geojson': geojson, 'address': address, + 'osm': osm, 'url': url}) # return results diff --git a/searx/static/oscar/img/loader.gif b/searx/static/oscar/img/loader.gif new file mode 100644 index 0000000000000000000000000000000000000000..3980ff00b1bc7d845ea080629a1702c5a6d1ca11 GIT binary patch literal 14190 zcmds;cU05qzOU0rehKLzg%BVKA&JT;B05+%5E23+A~KF*84wF7B27h#lM11SDoqSU zKv6+J1avT=2?~lG%ec`R_(OmV#TW!U36bGPfPyY4>skF)&;mrGnOJ`c~gy?A=b zT;>P6!ssv!4A#=ra`*P#XFopc>FYVud1h>U?8C1gu3foyrsK@mgRwX7-n6u~+`V`A z&FeRV7YBQ~dY(Ob_Tl4)Yd5aJ{_lSA{+GG0G+?E~%}?qy(-8>=pT+wH1!2HPhsl3o z^1lHy`xqq1+7wnEdgOTc)6SzSIHcDu+E?>Tek5hz(($^*#CF;kJahp(+v8bd+&m`6 ztlrq-Zf-BToLOD`ME?*X8AC`&Sr85t=J5U}iKp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j+F3Jnh-zG-@P-n z@+Pi^WOhV%|K5sFLF3()5UA@+)oJQj-Gu&KxTQVwh2G2mtIX?d)Vgce!-S^&(4LoV z!9nx1MN2Tt-ngl%r>|WIr%2K$ilytsejl|y6C0)a5)`2iam72*q?jxHjTq=Howe>f z72~MWY<=pcUjHb0+Qv8MO?8DUD-ZM=MVoAW?XI!-HKUJG=UYkEtTsGgeTkw}-|89Y zGr|~{#_#|G*WHF5^l?}fS#wzdp`BT}VMSS**"; + switch(row) { + case "phone": + case "fax": + newHtml += "" + element.tags[row] + ""; + break; + case "email": + newHtml += "" + element.tags[row] + ""; + break; + case "website": + case "url": + newHtml += "" + element.tags[row] + ""; + break; + case "wikidata": + newHtml += "" + element.tags[row] + ""; + break; + case "wikipedia": + if(element.tags[row].indexOf(":") != -1) { + newHtml += "" + element.tags[row] + ""; + break; + } + default: + newHtml += element.tags[row]; + break; + } + newHtml += ""; + } + } + $(result_table).html(newHtml); + $(result_table).removeClass('hidden'); + $(result_table_loadicon).addClass('hidden'); + } + }) + .fail(function() { + alert( "could not load " ); + }) + } + } + + // this event occour only once per element + $( this ).off( event ); + }); $(".searx_init_map").on( "click", function( event ) { var leaflet_target = $(this).data('leaflet-target'); @@ -119,7 +201,7 @@ $(document).ready(function(){ map.setView(new L.LatLng(map_lat, map_lon),8); } - map.addLayer(osmMapnik); + map.addLayer(osmMapquest); var baseLayers = { "OSM Mapnik": osmMapnik, diff --git a/searx/templates/oscar/result_templates/map.html b/searx/templates/oscar/result_templates/map.html index a7c37dd59..531146dc6 100644 --- a/searx/templates/oscar/result_templates/map.html +++ b/searx/templates/oscar/result_templates/map.html @@ -3,13 +3,25 @@

{% if result['favicon'] %} {% endif %}{{ result.title|safe }}

{% if result.publishedDate %}{% endif %} + {{ icon('link') }} {{ _('cached') }} + {% if (result.latitude and result.longitude) or result.boundingbox %} {% endif %} +{% if result.osm and (result.osm.type and result.osm.id) %} + +{% endif %} + +{# {% if (result.latitude and result.longitude) %} + +{% endif %} #} + +
+ {% if result.address %} -

+

{% if result.address.name %} {{ result.address.name }}
{% endif %} @@ -27,11 +39,29 @@ {% if result.address.country %} {{ result.address.country }} {% endif %} -

+

{% endif %} -{% if result.content %}

{{ result.content|safe }}

{% endif %} +{% if result.osm and (result.osm.type and result.osm.id) %} +
+
Loading ...
+ + + +
+{% endif %} +{# {% if (result.latitude and result.longitude) %} +
+ Longitude: {{ result.longitude }}
+ Latitude: {{ result.latitude }} +
+{% endif %} #} + +{% if result.content %}

{{ result.content|safe }}

{% endif %} + +
+ {% if (result.latitude and result.longitude) or result.boundingbox %}