cms/app-client/app/templates/components/notice-location-component.hbs
author ymh <ymh.work@gmail.com>
Wed, 08 Feb 2017 15:25:24 +0100
changeset 502 74fba571487e
parent 492 acecbffac2c4
permissions -rw-r--r--
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746

<div class="notice-location-meta">
{{#if geoInfo.ref-locs }}
<ul>
  {{#if geonamesLink }}
  <li>{{doc-location url=geonamesLink displayUrlLink=true onClick=(action 'addLocationFilter' countryCode)}}</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}}