Hi Allison,Using the 10.1.1 version of the app, I configured BaseMapLayers: [{
Key: "topo",
ThumbnailSource: "images/parcelMap.png",
Name: "Topo",
MapURL: "http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"
}],
// Initial map extent. Use comma (,) to separate values and dont delete the last comma.
DefaultExtent: "-8999921,5285755,-8686223,5560929",
(Changed the basemap, which controls the extents within which valid addresses must exist and changed the default extent to the Toronto area.)and// ------------------------------------------------------------------------------------------------------------------------
// ADDRESS SEARCH SETTINGS
// ------------------------------------------------------------------------------------------------------------------------
// Set Locator service URL.
LocatorURL: "http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer",
//Set locator name fields to search.
LocatorNameFields: [{
FieldName: 'Loc_name',
FieldValues: ["CAN.PointAddress", "CAN.StreetAddress"]
}],
// Set Locator fields (fields to be used for searching).
LocatorFields: "SingleLine",
// Set default address to search.
LocatorDefaultAddress: "12 Concorde Place Toronto ON M3C 3R8",
(Configured the World/GeocodeServer because it's in General Availability--NA_10 is being retired at the end of this year.)and I can search for Toronto addresses.From the config snippet, it looks like you may be using a pre-10.2 version. In that version, I made the same basemap and default extent changes as above and changed the locator config to// ------------------------------------------------------------------------------------------------------------------------
// ADDRESS SEARCH SETTINGS
// ------------------------------------------------------------------------------------------------------------------------
// Set Locator service URL.
LocatorSettings: {
LocatorMarkupSymbolPath: "images/RedPushpin.png", // Set pushpin image path.
MarkupSymbolSize: {
width: 25,
height: 25
},
Locators: [{
DisplayText: "Search Address",
DefaultValue: "12 Concorde Place Toronto ON M3C 3R8", // Set default address to search.
LocatorParamaters: ["SingleLine"], // Set Locator fields (fields to be used for searching).
LocatorURL: "http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer",
CandidateFields: "Loc_name, Score, Match_addr",
DisplayField: "${Match_addr}",
AddressMatchScore: 80,
LocatorFieldName: 'Loc_name',
LocatorFieldValues: ["CAN.StreetName", "CAN.PointAddress", "CAN.StreetAddress"]
}]
},
Regards,Mike