[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.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 (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 + ")";
//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;
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.