Skip to content

Commit

Permalink
createFeature should return the created feature.
Browse files Browse the repository at this point in the history
This is used in chosen: const feature = this.createFeature(coord, address);
  • Loading branch information
hkollmann committed Dec 30, 2016
1 parent 5acef09 commit 8304bc9
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 8304bc9

Please sign in to comment.