Skip to content

Commit

Permalink
Merge pull request #113 from hkollmann/fix_createFeature
Browse files Browse the repository at this point in the history
createFeature should return the created feature.
  • Loading branch information
jonataswalker authored Dec 30, 2016
2 parents 5acef09 + 8304bc9 commit ab4a733
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/nominatim.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ export class Nominatim {
feature.setStyle(this.options.featureStyle);
feature.setId(U.randomId('geocoder-ft-'));
this.getSource().addFeature(feature);
return feature;
}

addressTemplate(address) {
Expand Down

0 comments on commit ab4a733

Please sign in to comment.