@foodmarketmaker/mapag 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14975,10 +14975,11 @@ class WatershedMapper {
14975
14975
  map.setPaintProperty(this.LINE_LAYER_ID, 'line-opacity', settings.borderOpacity);
14976
14976
  const watershedLabelVisible = settings.visible && settings.labelsVisible;
14977
14977
  map.setLayoutProperty(this.LABEL_LAYER_ID, 'visibility', watershedLabelVisible ? 'visible' : 'none');
14978
- // map.setPaintProperty(this.LABEL_LAYER_ID, 'text-size', settings.labelsSize);
14979
14978
  map.setPaintProperty(this.LABEL_LAYER_ID, 'text-color', settings.labelsColor);
14980
14979
  map.setPaintProperty(this.LABEL_LAYER_ID, 'text-halo-color', settings.labelsHaloColor);
14981
14980
  map.setPaintProperty(this.LABEL_LAYER_ID, 'text-halo-width', settings.labelsHaloWidth);
14981
+ map.setPaintProperty(this.LABEL_LAYER_ID, 'text-opacity', settings.labelsOpacity);
14982
+ map.setLayoutProperty(this.LABEL_LAYER_ID, 'text-size', settings.labelsSize);
14982
14983
  }
14983
14984
  create() {
14984
14985
  if (!this.map) {
@@ -15039,6 +15040,8 @@ class WatershedMapper {
15039
15040
  type: 'symbol',
15040
15041
  layout: {
15041
15042
  'text-field': ['get', 'name'],
15043
+ 'text-size': this.settings().labelsSize,
15044
+ 'text-allow-overlap': true,
15042
15045
  },
15043
15046
  paint: {
15044
15047
  'text-color': this.settings().labelsColor,
@@ -15135,10 +15138,11 @@ class WatershedSettings {
15135
15138
  borderWidth = 1;
15136
15139
  borderOpacity = 1.0;
15137
15140
  labelsVisible = true;
15138
- labelsSize = 12;
15141
+ labelsSize = 10;
15139
15142
  labelsColor = '#000000';
15140
15143
  labelsHaloColor = '#ffffff';
15141
15144
  labelsHaloWidth = 1;
15145
+ labelsOpacity = 1.0;
15142
15146
  autoSelectLayer = false;
15143
15147
  }
15144
15148