[ATTACH=CONFIG]30469[/ATTACH]
Luci,
I finally figured this out!! I was having the same issue. If you open the locator.js file, then go to line 436
td.className = "selectedPark";
if (featureSet.distance) {
td.innerHTML = featureSet.name + " (" + dojo.number.format(featureSet.distance.toFixed(2)) + " miles)";
} else {
td.innerHTML = featureSet.name;
}
Remove the + " (" + dojo.number.format(featureSet.distance.toFixed(2)) + " miles)"
Should look like this:
td.className = "selectedPark";
if (featureSet.distance) {
td.innerHTML = featureSet.name ;
} else {
td.innerHTML = featureSet.name;
}
I hope this helps.
If I figure out to change the location to display the correct miles I will post it on this discussion.
Here's another example.
Modification example for Park Finder 2.0 locator.js file.
tdFeatureList.className = "selectedFeature";
if (featureSet.distance) {
if (approximateValue) {
//If the approximateValue is set in the config.js file, the approximate distance value will show in the Search Results box. I commented out the configuration value.
tdFeatureList.innerHTML = featureSet.name + " (" + dojo.number.format(featureSet.distance.toFixed(2)) + " miles " + approximateValue + ")";
} else {
//I removed the approximate value, which I assume is as a crow flies. It is confusing when drive directions are provided.
//tdFeatureList.innerHTML = featureSet.name + " (" + dojo.number.format(featureSet.distance.toFixed(2)) + " miles)";
tdFeatureList.innerHTML = featureSet.name;
}
} else {
tdFeatureList.innerHTML = featureSet.name;
}