This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This patch should be removed at JSAPI 3.8 */ | |
require([ | |
"dojo/_base/lang", | |
"dojo/Deferred", | |
"esri/dijit/Directions" | |
], function(lang, Deferred, Directions){ | |
Directions.prototype._getCandidate = function(stop, index) { | |
var def = new Deferred(); | |
var stopType = typeof stop; | |
var emptyStop = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The suggest service does not honor the sourceCountry parameter. This function works to filter results based on a regEx. | |
In post create: | |
this.own(aspect.before(this.geocoder, '_hydrateResults', lang.hitch(this, 'scrubGeocodeAutoComplete'))); | |
member function: | |
scrubGeocodeAutoComplete: function(results) { | |
var re = /United States/i; | |
var scrubedResults = []; |
NewerOlder