]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - dist/search.html
generate mapicon URLs from place category and type
[nominatim-ui.git] / dist / search.html
index a8a36d91c1dcc17f80464994b31a8a7d6f42ceac..b3e2b032ae5d05da845d05337700439c6a88be9d 100644 (file)
 <script id="searchpage-template" type="text/x-handlebars-template">
 {{#*inline "partial_one_result"}}
   <div class="result" data-position="{{iResNum}}">
-    {{#if aResult.icon}}
-      {{!-- <img src="{{env.Images_Base_Url}}{{aResult.icon}}" /> --}}
-      {{formatMapIcon aResult.icon}}
-    {{/if}}
+    {{formatMapIcon aResult}}
 
     <span class="name">{{aResult.display_name}}</span>
     <span class="type">({{formatLabel aResult}})</span>