Skip to content

Commit

Permalink
fix(SebmGogleMapMarker): label updates
Browse files Browse the repository at this point in the history
When the marker label changed over time, the new label
was not visible on the map.
  • Loading branch information
sebholstein committed Jan 31, 2016
1 parent 53911cf commit e2b9923
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/services/marker-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ export class MarkerManager {
}

updateLabel(marker: SebmGoogleMapMarker): Promise<void> {
return this._markers.get(marker).then((m: Marker) => {
const label = m.getLabel();
label.text = marker.label;
m.setLabel(label);
});
return this._markers.get(marker).then((m: Marker) => { m.setLabel(marker.label); });
}

addMarker(marker: SebmGoogleMapMarker) {
Expand Down

0 comments on commit e2b9923

Please sign in to comment.