-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathplace-web.htm
More file actions
91 lines (84 loc) · 4.28 KB
/
place-web.htm
File metadata and controls
91 lines (84 loc) · 4.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<json-data url="{rootApiUrl}/place/:id" url-params load-only-once>
<is-loading template-selector="#loading-screen"></is-loading>
<has-error template-selector="#error-screen"></has-error>
<is-loaded class="flex-col">
<h1 data-bind="place.name"></h1>
<nav>
<a href="#/[window.i18n_Locale]/" data-i18n="Countries" data-bind-attr="href"></a>
<a href="#/[window.i18n_Locale]/regions/[place.country_code]" data-i18n="Regions" data-bind-attr="href"></a>
<a href="#/[window.i18n_Locale]/cities/[place.country_code]/[place.admin1_code]" data-i18n="Cities" data-bind-attr="href"></a>
</nav>
<div class="place-screen">
<section class="form-fields">
<div>
<label class="no-top-margin" data-i18n="Name"></label>
<span data-bind="place.name"></span>
</div>
<div data-show="place.name !== place.ascii_name">
<label data-i18n="ASCII Name"></label>
<span data-bind="place.ascii_name"></span>
</div>
<div>
<label data-i18n="Country (ISO)"></label>
<span data-bind="place.country_code"></span>
<i class="[place.country_code] flag" data-bind-attr="class"></i>
</div>
<div>
<label data-i18n="Region (State, Province, etc.)"></label>
<span data-bind="place.admin1_code"></span>
</div>
<div>
<label data-i18n="Population"></label>
<span data-bind="place.population" data-format="number"></span>
</div>
<div>
<label data-i18n="Elevation"></label>
<span data-bind="place.elevation" data-format="formatElevation"></span>
</div>
<div>
<label data-i18n="Latitude"></label>
<span data-bind="place.latitude"></span>
</div>
<div>
<label data-i18n="Longitude"></label>
<span data-bind="place.longitude"></span>
</div>
<div>
<label data-i18n="Timezone"></label>
<span data-bind="place.timezone"></span>
</div>
<div>
<label data-i18n="Date Last Modified"></label>
<span data-bind="place.modification_date" data-format="date"></span>
</div>
</section>
<section>
<div
is="leaflet-map"
latitude="[place.latitude]"
longitude="[place.longitude]"
zoom="11"
marker="[place.name]"
data-bind-attr="latitude, longitude, marker">
</div>
<div class="map-links">
<small><a href="https://www.openstreetmap.org#map=12/[place.latitude]/[place.longitude]" data-bind-attr="href" target="_blank" data-i18n="View on OpenStreetMap"></a></small>
<small><a href="https://www.google.com/maps/@[place.latitude],[place.longitude],12z" data-bind-attr="href" target="_blank" data-i18n="View on Google Maps"></a></small>
</div>
</section>
</div>
<section class="alternate-names" data-show="place.alternate_names.length > 0">
<h2><span data-i18n="Alternate Names"></span> (<span data-bind="place.alternate_names.length"></span>)</h2>
<input
is="input-filter"
data-show="place.alternate_names.length > 10"
filter-selector=".alternate-names li"
filter-results-selector=".alternate-names h2"
filter-results-text-all="Alternate Names ({totalCount})"
filter-results-text-filtered="Showing {displayCount} of {totalCount} Alternate Names"
placeholder="Enter filter"
data-i18n-attr="placeholder, filter-results-text-all, filter-results-text-filtered">
<data-list data-bind="place.alternate_names"></data-list>
</section>
</is-loaded>
</json-data>