cms/app-client/app/templates/components/notice-location-component.hbs
changeset 447 38d5789e30d0
child 492 acecbffac2c4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cms/app-client/app/templates/components/notice-location-component.hbs	Sun Nov 27 15:12:30 2016 +0100
@@ -0,0 +1,29 @@
+<div class="notice-location-meta">
+{{#if geoInfo.ref-locs }}
+<ul>
+  {{#if geonamesLink }}
+  <li>{{doc-location url=geonamesLink }}</li>
+  {{/if}}
+  {{#each otherRefLinks as |link| }}
+  <li><a href={{link}} target="_blank" class="notice-location-ext-link">{{link}}</a></li>
+  {{/each}}
+</ul>
+{{/if}}
+{{#if geoInfo.notes }}
+<ul>
+  {{#each geoInfo.notes as |note| }}
+  <li>{{note.value}}</li>
+  {{/each}}
+</ul>
+{{/if}}
+</div>
+{{#if hasCoordinates }}
+<div class="notice-location-map">
+  <div class="notice-location-map-coordinates">lat.: {{geoInfo.latitude}}, long.: {{geoInfo.longitude}}</div>
+  {{#leaflet-map lat=geoInfo.latitude lng=geoInfo.longitude zoom=zoom scrollWheelZoom=false }}
+    {{tile-layer url=tilesUrl}}
+    {{marker-layer location=location}}
+  {{/leaflet-map}}
+  <div class="notice-location-map-mention">Fond de carte <a href="https://www.openstreetmap.org/?mlat={{geoInfo.latitude}}&mlon={{geoInfo.longitude}}#map=15/{{geoInfo.latitude}}/{{geoInfo.longitude}}" target="_blank">OpenStreetMap</a>.</div>
+</div>
+{{/if}}
\ No newline at end of file