cms/app-client/app/components/notice-location-component.js
changeset 453 1059a7ae018a
parent 447 38d5789e30d0
child 502 74fba571487e
equal deleted inserted replaced
452:85cf1c3a2fea 453:1059a7ae018a
     7   tilesUrl: "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
     7   tilesUrl: "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
     8   location: Ember.computed('geoInfo', function() {
     8   location: Ember.computed('geoInfo', function() {
     9     return [this.get('geoInfo.latitude'), this.get('geoInfo.longitude')];
     9     return [this.get('geoInfo.latitude'), this.get('geoInfo.longitude')];
    10   }),
    10   }),
    11   hasCoordinates: Ember.computed('geoInfo', function() {
    11   hasCoordinates: Ember.computed('geoInfo', function() {
    12     return Boolean(this.get('geoInfo').longitude) && Boolean(this.get('geoInfo').latitude);
    12     return Boolean(this.get('geoInfo.longitude')) && Boolean(this.get('geoInfo.latitude'));
    13   }),
    13   }),
    14   geonamesLink: Ember.computed('geoInfo.ref-locs', function() {
    14   geonamesLink: Ember.computed('geoInfo.ref-locs', function() {
    15     let link = null;
    15     let link = null;
    16     this.get('geoInfo.ref-locs').forEach(l => {
    16     this.get('geoInfo.ref-locs').forEach(l => {
    17       if(commonUtils.isGeonamesLink(l)) {
    17       if(commonUtils.isGeonamesLink(l)) {