Skip to content

Commit

Permalink
Fix #8489 geo.label.formatter is not working
Browse files Browse the repository at this point in the history
  • Loading branch information
susiwen8 authored and Yi Shen committed Sep 10, 2019
1 parent 761de46 commit 081f24a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/coord/geo/GeoModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,11 @@ var GeoModel = ComponentModel.extend({
*/
getFormattedLabel: function (name, status) {
var regionModel = this.getRegionModel(name);
var formatter = regionModel.get('label.' + status + '.formatter');
var formatter = regionModel.get('label'
+ (status === 'normal'
? '.'
: status + '.')
+ 'formatter');
var params = {
name: name
};
Expand Down

0 comments on commit 081f24a

Please sign in to comment.