Expressions / adaptation and cleanup after stretch operator removal

The examples have been fixed as well.
This commit is contained in:
Olivier Guyot
2019-10-25 13:21:32 +02:00
parent 719495587c
commit e843b2cfc0
6 changed files with 49 additions and 46 deletions

View File

@@ -26,9 +26,10 @@ const style = {
size: size,
color: [
'interpolate',
['stretch', ['get', 'year'], 1950, 2013, 0, 1],
oldColor,
newColor
['linear'],
['get', 'year'],
1950, oldColor,
2013, newColor
],
rotateWithView: false,
offset: [