CartoDB / mobile-sdk

CARTO Mobile SDK core project
https://carto.com/docs/carto-engine/mobile-sdk/
BSD 3-Clause "New" or "Revised" License
179 stars 65 forks source link

polygon-pattern alignment problem #497

Closed txtdevelop closed 1 year ago

txtdevelop commented 2 years ago

polygon-pattern alignment seems to be off

polygon-pattern-artifacts

map version: 4.4.5

platform: iOS

layer type: VectorTileLayer

style: `

country-boundaries{

          line-cap: butt;
          line-color: rgba(212,212,212,0.3);
          line-width: 1.0;
          polygon-pattern-file: url('patterns/lines.png');
      }

`

pattern: lines

I tried to add "polygon-pattern-alignment: global" to the style, but nothing changed I also tried to use a 256x256 pattern, but the alignment problem still persist

mtehver commented 2 years ago

Thanks for reporting this. Indeed, any power-or-two sized pattern should work here, but currently due to internal scaling factor the alignment is off. Will try to fix this in 4.4.6 version.

mtehver commented 2 years ago

@txtdevelop 4.4.6-rc.1 is now released and includes a fix for this.

mtehver commented 1 year ago

Closing this, 4.4.6 has the fix.