]> git.openstreetmap.org Git - nominatim-ui.git/blob - dist/reversepage.hbs
Merge pull request #10 from mtmail/skip-empty-values
[nominatim-ui.git] / dist / reversepage.hbs
1
2 {{#*inline "partial_one_result"}}
3   <div class="result" data-position="{{iResNum}}">
4     {{#if aResult.icon}}
5       <img src="{{env.Images_Base_Url}}{{aResult.icon}}" />
6       {{!-- {{formatMapIcon aResult.icon}} --}}
7     {{/if}}
8
9     <span class="name">{{aResult.display_name}}</span>
10     <span class="type">{{formatLabel aResult}}</span>
11     <p class="coords">{{aResult.lat}},{{aResult.lon}}</p>  
12
13     <a class="details btn btn-outline-secondary btn-sm"
14        href="details.html?osmtype={{shortOSMType aResult.osm_type}}&osmid={{aResult.osm_id}}">details</a>
15   </div>
16 {{/inline}}
17
18 <div class="top-bar">
19   <form class="form-inline" role="search" accept-charset="UTF-8" action="">
20     <div class="form-group">
21       <input name="format" type="hidden" value="html">
22       <label>lat</label>
23       <input name="lat"
24              type="text"
25              class="form-control form-control-sm"
26              placeholder="latitude"
27              value="{{fLat}}" />
28       <a id="switch-coords" class="btn btn-outline-secondary btn-sm" title="switch lat and lon">&lt;&gt;</a>
29       <label>lon</label>
30       <input name="lon"
31              type="text"
32              class="form-control form-control-sm"
33              placeholder="longitude"
34              value="{{fLon}}" />
35       <label>max zoom</label>
36       <select name="zoom" class="form-control form-control-sm" value="{{iZoom}}">
37         {{zoomLevels iZoom}}
38       </select>
39       <button type="submit" class="btn btn-primary btn-sm mx-1">
40         Search
41       </button>
42     </div>
43     <div class="search-type-link">
44       <a href="/search.html">forward search</a>
45     </div>
46   </form>
47 </div>
48
49 <div id="content">
50   {{#if aPlace}}
51     <div id="searchresults" class="sidebar">
52       {{>partial_one_result iResNum=0 aResult=aPlace env=env}}
53     </div>
54   {{else}}
55     <div id="intro" class="sidebar">
56       Search for coordinates or click anywhere on the map.
57     </div>
58   {{/if}}
59
60   <div id="map-wrapper">
61     <div id="map-position">
62       <div id="map-position-inner"></div>
63       <div id="map-position-close"><a href="#">hide</a></div>
64     </div>
65     <div id="map"></div>
66   </div>
67 </div>