Skip to content

Commit

Permalink
fix: naming-convention error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanoy committed May 13, 2017
1 parent 267af29 commit dd84fb5
Show file tree
Hide file tree
Showing 9 changed files with 105 additions and 105 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ List of settings that can be used to configure the module (all config. are optio
geoPredictionServerUrl?: string; //should be a server url which returns list of places upon input query (GET request)
geoLatLangServiceUrl?: string; //should be a server url which returns place object upon lat and lon. (GET request)
geoLocDetailServerUrl?: string; //should be a server url which returns place details upon placeID received by 'geoPredictionServerUrl' (GET request)
geoComponentRestriction?: any; //should be an array of country code where search should be restricted like ['in', 'us', 'pr', 'vi', 'gu', 'mp'] *(Default: 'no restriction')*
geoCountryRestriction?: any; //should be an array of country code where search should be restricted like ['in', 'us', 'pr', 'vi', 'gu', 'mp'] *(Default: 'no restriction')*
serverResponseListHierarchy?: any; //should be an array of key from where 'geoPredictionServer' data should be extracted. (see Example.)
serverResponseatLangHierarchy?: any; //should be an array of key from where 'geoLatLangService' data should be extracted. (see Example.)
serverResponseDetailHierarchy?: any; //should be an array of key from where 'geoLocDetailSerice' data should be extracted. (see Example.)
Expand Down
2 changes: 1 addition & 1 deletion demo/demo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class DemoComponent {
public componentData5: any = '';
public userSettings2: any = {
showRecentSearch: false,
geoComponentRestriction: ['in'],
geoCountryRestriction: ['in'],
searchIconUrl: 'http://downloadicons.net/sites/default/files/identification-search-magnifying-glass-icon-73159.png'
};
public userSettings3: any = {
Expand Down
6 changes: 3 additions & 3 deletions docs/components/AutoCompleteComponent.html
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ <h3 id="inputs">
geoPredictionServerUrl?: string;
geoLatLangServiceUrl?: string;
geoLocDetailServerUrl?: string;
geoComponentRestriction?: any;
geoCountryRestriction?: any;
serverResponseListHierarchy?: any;
serverResponseatLangHierarchy?: any;
serverResponseDetailHierarchy?: any;
Expand Down Expand Up @@ -1424,7 +1424,7 @@ <h3 id="inputs">
geoPredictionServerUrl: &#x27;&#x27;,
geoLatLangServiceUrl: &#x27;&#x27;,
geoLocDetailServerUrl: &#x27;&#x27;,
geoComponentRestriction: [],
geoCountryRestriction: [],
serverResponseListHierarchy: [],
serverResponseatLangHierarchy: [],
serverResponseDetailHierarchy: [],
Expand Down Expand Up @@ -1579,7 +1579,7 @@ <h3 id="inputs">
private getListQuery(value: string): any {
this.recentDropdownOpen &#x3D; false;
if (this.settings.useGoogleGeoApi) {
this._autoCompleteSearchService.getGeoPrediction(value, this.settings.geoComponentRestriction).then((result) &#x3D;&gt; {
this._autoCompleteSearchService.getGeoPrediction(value, this.settings.geoCountryRestriction).then((result) &#x3D;&gt; {
this.updateListItem(result);
});
}else {
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ <h2 id="installation">Installation</h2>
geoPredictionServerUrl?: string; //should be a server url which returns list of places upon input query (GET request)
geoLatLangServiceUrl?: string; //should be a server url which returns place object upon lat and lon. (GET request)
geoLocDetailServerUrl?: string; //should be a server url which returns place details upon placeID received by 'geoPredictionServerUrl' (GET request)
geoComponentRestriction?: any; //should be an array of country code where search should be restricted like ['in', 'us', 'pr', 'vi', 'gu', 'mp'] *(Default: 'no restriction')*
geoCountryRestriction?: any; //should be an array of country code where search should be restricted like ['in', 'us', 'pr', 'vi', 'gu', 'mp'] *(Default: 'no restriction')*
serverResponseListHierarchy?: any; //should be an array of key from where 'geoPredictionServer' data should be extracted. (see Example.)
serverResponseatLangHierarchy?: any; //should be an array of key from where 'geoLatLangService' data should be extracted. (see Example.)
serverResponseDetailHierarchy?: any; //should be an array of key from where 'geoLocDetailSerice' data should be extracted. (see Example.)
Expand Down
4 changes: 2 additions & 2 deletions docs/js/search/search_index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@
<ng2geo-autocomplete-demoapp>Loading demo...</ng2geo-autocomplete-demoapp>
</div>
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=true&key=AIzaSyARZV20YYnYyyW-sUc0WorytUkX49-CwH8&libraries=places&language=en-US"></script>
<script type="text/javascript" src="main-4a46306671b3aa05a072.js"></script></body>
<script type="text/javascript" src="main-8de2cb8c0744be80b870.js"></script></body>
</html>
184 changes: 92 additions & 92 deletions main-4a46306671b3aa05a072.js → main-8de2cb8c0744be80b870.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/auto-complete.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface Settings {
geoPredictionServerUrl?: string;
geoLatLangServiceUrl?: string;
geoLocDetailServerUrl?: string;
geoComponentRestriction?: any;
geoCountryRestriction?: any;
serverResponseListHierarchy?: any;
serverResponseatLangHierarchy?: any;
serverResponseDetailHierarchy?: any;
Expand Down Expand Up @@ -294,7 +294,7 @@ export class AutoCompleteComponent implements OnInit {
geoPredictionServerUrl: '',
geoLatLangServiceUrl: '',
geoLocDetailServerUrl: '',
geoComponentRestriction: [],
geoCountryRestriction: [],
serverResponseListHierarchy: [],
serverResponseatLangHierarchy: [],
serverResponseDetailHierarchy: [],
Expand Down Expand Up @@ -449,7 +449,7 @@ export class AutoCompleteComponent implements OnInit {
private getListQuery(value: string): any {
this.recentDropdownOpen = false;
if (this.settings.useGoogleGeoApi) {
this._autoCompleteSearchService.getGeoPrediction(value, this.settings.geoComponentRestriction).then((result) => {
this._autoCompleteSearchService.getGeoPrediction(value, this.settings.geoCountryRestriction).then((result) => {
this.updateListItem(result);
});
}else {
Expand Down

0 comments on commit dd84fb5

Please sign in to comment.