maplibre / maplibre-native

MapLibre Native - Interactive vector tile maps for iOS, Android and other platforms.
https://maplibre.org
BSD 2-Clause "Simplified" License
1.09k stars 321 forks source link

line pattern not scaling consistently #260

Open dieterdreist opened 2 years ago

dieterdreist commented 2 years ago

I set a line pattern via sprite and it works well in the js preview in the browser, but on iOS retina the pattern is distorted / cut and looking very differently. Is this a known issue? I found something in the Mapbox repository about this problem, for example here https://github.com/mapbox/mapbox-gl-native/issues/16359

dieterdreist commented 2 years ago

Here an example:

Non retina gljs renderer

Screenshot 2022-03-21 at 09 25 16 Screenshot 2022-03-21 at 09 25 05 Screenshot 2022-03-21 at 09 25 28

iPhone7

IMG_5001 IMG_4998 IMG_4999

louwers commented 1 year ago

@dieterdreist Can you provide a reproduction?

dieterdreist commented 1 year ago

I just updated and I can confirm it still exists. Here is a test style with sprites and tiles to test around 12.51E / 41.85N test-style.zip

louwers commented 1 year ago

Could you try out the Metal pre-release: https://github.com/maplibre/maplibre-native/issues/1609 ?

dieterdreist commented 7 months ago

I didn't manage to use the prerelease, but with the current 6.3.1 the problem is still there, but it is looking differently.

Here screenshots from the same area: IMG_1064 IMG_1065