Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
HEREPlaces.prototype.updatePlaces = function(places) {
var markerOptions = {
icon: new H.map.Icon(Utils.icons.iceCream.url, Utils.icons.iceCream.options)
};
this.clearSearch();
this.searchResults = places.map(function(place) {
var marker = new H.map.Marker(place.coordinates, markerOptions);
this.map.addObject(marker);
marker.addEventListener('tap', this.onClickPlace);
return marker;
}.bind(this));
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.