Skip to content

Commit

Permalink
chore: resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
themustafaomar committed Mar 31, 2023
2 parents 7fe56c5 + 3790611 commit c1695be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/components/region.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ class Region extends BaseComponent {
this._map = map
this.shape = this._createRegion(path, code, style)

const bbox = this.shape.getBBox()
const text = this.getLabelText(code, label)

// If label is passed and render function returns something
if (label && text) {
const bbox = this.shape.getBBox()
const offsets = this.getLabelOffsets(code, label)

this.labelX = bbox.x + bbox.width / 2 + offsets[0]
Expand Down

0 comments on commit c1695be

Please sign in to comment.