Skip to content

Commit

Permalink
Fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
green3g committed Oct 10, 2016
1 parent 5bb34eb commit 86064a2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
20 changes: 10 additions & 10 deletions viewer/js/config/identify.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ define([
], function (i18n, lang) {

var linkTemplate = '<a href="{url}" target="_blank">{text}</a>';
var directionsFormatter = function(noValue, attributes){
return lang.replace(linkTemplate, {
url: 'https://www.google.com/maps/dir/' + attributes.Address + ' Louisville, KY',
text: 'Get Directions'
});
};
function directionsFormatter (noValue, attributes) {
return lang.replace(linkTemplate, {
url: 'https://www.google.com/maps/dir/' + attributes.Address + ' Louisville, KY',
text: 'Get Directions'
});
}
return {
map: true,
mapClickMode: true,
Expand Down Expand Up @@ -41,10 +41,10 @@ define([
// example of adding a 'calculated' or formatted field
// click on a louisville kentucky police station to see
// the result
fieldName: 'Directions',
visible: true,
formatter: directionsFormatter
},{
fieldName: 'Directions',
visible: true,
formatter: directionsFormatter
}, {
fieldName: 'Name',
visible: true
}, {
Expand Down
14 changes: 7 additions & 7 deletions viewer/js/gis/dijit/Identify.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,13 +320,13 @@ define([
}, this);
this.map.infoWindow.setFeatures(fSet);
},
getFormattedFeature: function(feature){
array.forEach(feature.infoTemplate.info.fieldInfos, function(info){
if(typeof info.formatter === 'function'){
feature.attributes[info.fieldName] = info.formatter(feature.attributes[info.fieldName], feature.attributes);
}
});
return feature;
getFormattedFeature: function (feature) {
array.forEach(feature.infoTemplate.info.fieldInfos, function (info) {
if (typeof info.formatter === 'function') {
feature.attributes[info.fieldName] = info.formatter(feature.attributes[info.fieldName], feature.attributes);
}
});
return feature;
},
identifyError: function (err) {
this.map.infoWindow.hide();
Expand Down

0 comments on commit 86064a2

Please sign in to comment.