Street name searching takes account of the current map view. If you can't find what you're looking for in this list, try zooming out or moving the map to cover the area where the street is located.
\")\r\n .insertAfter(this.resultsSelect);\r\n\r\n let self = this;\r\n $(\".clearer\").click(function () {\r\n self._helpElement.hide();\r\n });\r\n\r\n this.locationPinStyle = new Style({\r\n text: new TextStyle({\r\n text: '\\uf3c5',\r\n font: 'normal 52px \"Font Awesome 6 Pro\"',\r\n textBaseline: 'bottom',\r\n fill: new Fill({\r\n color: '#ff0000'\r\n })\r\n })\r\n });\r\n\r\n this._osInitialised = true;\r\n }\r\n }\r\n\r\n protected find = (searchTerm: string): void => {\r\n let searchType: GazetteerSearchType = this.getSearchType(searchTerm);\r\n\r\n if (searchTerm.trim() === \"\") {\r\n return;\r\n }\r\n\r\n this._currentSearchTerm = searchTerm;\r\n\r\n //remove all existing entries \r\n this.resultsSelect.empty();\r\n this.resultsSelect.hide();\r\n this._helpElement.hide();\r\n this.noResults.hide();\r\n this.pointLayer.getSource().clear();\r\n\r\n switch (searchType) {\r\n case GazetteerSearchType.Postcode:\r\n this.findPostcode(searchTerm);\r\n break;\r\n\r\n case GazetteerSearchType.Location:\r\n this.findAddressAndLocation(searchTerm);\r\n break;\r\n }\r\n }\r\n\r\n private findPostcode = (searchTerm: string): void => {\r\n let self = this;\r\n let error = function (error) {\r\n self.loadingIndicator.hide();\r\n console.error(error);\r\n }\r\n let success = function (result: any) {\r\n let osResult: IOsOpenSpaceResults = {\r\n searchType: GazetteerSearchType.Postcode,\r\n results: result.results\r\n };\r\n self.onSearchGazetteerResult(osResult);\r\n }\r\n\r\n let search = this.searchGazetteer({\r\n url: this._osNamesUrl,\r\n //key: \"1D5aW6pbptU2bufc2DBAux8JYvtrbeon\",\r\n key: self._apikey,\r\n query: searchTerm,\r\n maxResults: 20,\r\n fq: \"LOCAL_TYPE:Postcode\"\r\n });\r\n $.when(search)\r\n .then(success, error)\r\n .always(function () { self.loadingIndicator.hide(); });\r\n }\r\n\r\n private findAddressAndLocation = (searchTerm: string): void => {\r\n let self = this;\r\n\r\n let success = function (result1: any, result2: any) {\r\n let combinedResult: IOsOpenSpaceResults = {\r\n searchType: GazetteerSearchType.LocationAndAddressLine,\r\n results: []\r\n };\r\n\r\n let data = result1[0] || result1;\r\n let res =