Skip to content
Snippets Groups Projects

feat(vector-map): add drawing compartments

2 unresolved threads

Closes MIN-27

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
104 this.fontSize = fontSize;
105 this.nameX = nameX;
106 this.nameY = nameY;
107 this.nameWidth = nameWidth;
108 this.nameHeight = nameHeight;
109 this.fontColor = fontColor;
110 this.nameVerticalAlign = nameVerticalAlign;
111 this.nameHorizontalAlign = nameHorizontalAlign;
112 this.fillColor = fillColor;
113 this.borderColor = borderColor;
114 this.pointToProjection = pointToProjection;
115 }
116
117 protected abstract createPolygons(): void;
118
119 protected initializeText(): void {
  • 125 y: this.nameY,
    126 width: this.nameWidth,
    127 height: this.nameHeight,
    128 color: rgbToHex(this.fontColor),
    129 zIndex: this.zIndex,
    130 verticalAlign: this.nameVerticalAlign,
    131 horizontalAlign: this.nameHorizontalAlign,
    132 pointToProjection: this.pointToProjection,
    133 });
    134 this.styles.push(textStyle);
    135 this.polygonsTexts.push(this.text);
    136 this.polygons.push(new Polygon([[textCoords, textCoords]]));
    137 }
    138 }
    139
    140 protected initializeMultiPolygonFeature(mapInstance: MapInstance): void {
  • added 2 commits

    • 210bf441 - refactor(vector-map): change BaseMultiPolygon methods names (initialize -> draw)
    • 07d9d996 - refactor(vector-map - compartment): add abstract class for compartments, add fills for compartments

    Compare with previous version

  • added 6 commits

    Compare with previous version

  • Konrad Przybysz approved this merge request

    approved this merge request

  • mentioned in commit ada6f898

  • Please register or sign in to reply
    Loading