Open farfromrefug opened 3 years ago
I tried to understand how this works in MapBox Studio based on documentation but it is not very clear. Perhaps this can be done with existing functions/interpolation? For example:
line-width: pow(2.0, linear([view::zoom], (0, 0), (8, 0), (16, 1))
@mtehver indeed it could be possible to do with pow. Managed to get something similar to the exp screenshot with pow(2.0, linear([view::zoom], (8, -4.4), (18, 3.6))) + 0.5;
. But as you see getting the right parameters is really hard :s Would be nice to have a way to "express" it in a simpler way. But thanks for the idea!
@mtehver found the source code for the exponential interpolator: https://github.com/maplibre/maplibre-gl-native/blob/ee94520bffeae2f6246284e1931d0cc1d615f708/src/mbgl/style/expression/interpolate.cpp
It would be awesome to be able to use exp function for colors/numbers based on zoom The idea is achieve something like what mabpox does with exp
In some discussion you talked about
interpolation
https://github.com/CartoDB/mobile-sdk/issues/9#issuecomment-237169983that method does not exist anymore? Something like this would be awesome: