cms/app-client/app/templates/components/notice-location-component.hbs
author ymh <ymh.work@gmail.com>
Sun, 27 Nov 2016 15:12:30 +0100
changeset 447 38d5789e30d0
child 492 acecbffac2c4
permissions -rw-r--r--
Improce notice data display, correct m3.23

<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}}