mobile-sdk icon indicating copy to clipboard operation
mobile-sdk copied to clipboard

cartocss `Map` `background-color` does not support view::zoom

Open farfromrefug opened this issue 3 years ago • 4 comments

if i set this:

Map {
background-color: linear([view::zoom], (5, #e6e4e0), (22, red))
}

Then i end up with a transparent background

farfromrefug avatar Jun 07 '22 13:06 farfromrefug

Indeed, this is not currently supported. I have to check if this can be easily implemented. Just being curious, what is your use case for this?

mtehver avatar Jun 15 '22 08:06 mtehver

@mtehver i am reproducing OSM style in cartocss. And they change the background color with view zoom. And you could want to do that with south-pole-color and north-pole-color

farfromrefug avatar Jun 15 '22 08:06 farfromrefug

@farfromrefug This is now implemented in 'develop' branch (you need 'develop' branch from mobile-carto-libs also).

mtehver avatar Jun 28 '22 09:06 mtehver

@mtehver thanks will test it!

farfromrefug avatar Jun 28 '22 09:06 farfromrefug

Closing this, implemented in 4.4.7 release.

mtehver avatar Oct 10 '22 07:10 mtehver