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

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

Closed farfromrefug closed 1 year ago

farfromrefug commented 2 years ago

if i set this:

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

Then i end up with a transparent background

mtehver commented 2 years ago

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?

farfromrefug commented 2 years ago

@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

mtehver commented 2 years ago

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

farfromrefug commented 2 years ago

@mtehver thanks will test it!

mtehver commented 1 year ago

Closing this, implemented in 4.4.7 release.