flutter-mapbox-gl / maps

A Mapbox GL flutter package for creating custom maps
Other
1.04k stars 503 forks source link

Transparency Issue in symbol layer #1394

Closed amit-rentzeme closed 7 months ago

amit-rentzeme commented 9 months ago

Pins are overlaying/intersecting text on top of one another

   await mapController?.addSymbolLayer(
      'properties', 
      'uncluster-count', 
      SymbolLayerProperties(
        textField: [
          Expressions.caseExpression,
          [Expressions.largerOrEqual, [Expressions.get, 'units'], 2],
          [Expressions.concat, [Expressions.toStringExpression, 
            [Expressions.get, 'units']], ' Units'],
          [Expressions.get, 'amount_label'],
        ],
        textFont: ['DIN Offc Pro Medium', 'Arial Unicode MS Bold'],
        textSize: 12,
        textColor: [
          Expressions.caseExpression,
          [Expressions.equal, [Expressions.get, 'selected'], true],
          "#DC00FE",
          "#006AF9"
        ],
        textAllowOverlap: true,
        iconAllowOverlap: true,
        iconImage: [
          Expressions.caseExpression,
          [Expressions.equal, [Expressions.get, 'selected'], true],
          AssetsFiles.union2,
          AssetsFiles.union
        ],
        iconSize: Get.mediaQuery.devicePixelRatio * 0.7,
      ),
      filter: [Expressions.not, [Expressions.has, 'point_count']],
    );

Screenshot_20231218-172058

stale[bot] commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.