All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Added
getAllCategories
public method toHistogram
class.
- Added 'order' option (DESC, ASC) for
getLegendData
method
- Remove 'color' key in legend data
- Fix best subpalette detection
- Update browser support documentation
- Fix Windshaft request
- Fix "too complex" error in belongs expression
- Fix using length as a property name
- Lower minimum MAX_VERTEX_TEXTURE_IMAGE_UNITS requirement
- Fix feature viz property value
- Fix
toString
method in animation expression - Fix
carto.isBrowserSupported
adding a required check on MAX_VERTEX_TEXTURE_IMAGE_UNITS
- Support dates in binary expressions
- Fix
value
,eval()
andgetLegendData()
for binary operations - Support mixed multi geometries in GeoJSON: LineString & MultiLineString, Polygon & MultiPolygon
- Support dates in Histogram expressions
- Remove Infinity numbers from Classifiers
getLegendData()
method - Change
numBuckets
getter to a method intop
expression
removed
event for Layer instances
- Internal refactoring regarding data sources (GeoJSON and Windshaft) and Dataframe
- Unify
.value
,.eval()
and.getLegendData()
methods to get expression values - Upgrade to use Mapbox GL version 1.0.0
- Deregister removed layers in interactivity
- Remove map listeners when there are no layers remaining in interactivity
- Do not always add CARTO_VL_OTHERS when getting legend data from the buckets expression
- Fix memory exhausted error using
buckets
with a long list
- Add fullscreen control to all public examples
- Add error types for exceptions
- Load built-in icons from CDN to make them work on FireFox
- Update workflow documentation
- Update info about browser support and WebGL
- Change interactive classification example
- Allow the use of variables for all classifiers:
globalQuantiles
,globalEqIntervals
,globalStandardDev
,viewportQuantiles
,viewportEqIntervals
andviewportStandardDev
- Improve MVT decoding error messages
- Add interactive filter example
- Throw error when using
clusterCount
in a global classifier - Label example with
clusterAVG
expression - Label example with
clusterCount
expression - Add
globalHistogram
expression - Add Animation examples
- Clean and reorganize examples in the documentation
- Fix regression in
Interactivity
using MVT and polygons - Raise an error when the idProperty is not specified in the metadata and is not a number
- Fix getting aggregation expression values passed to
viewportFeatures
expression - Fix WebGL incompatibility in Edge
- Fix regression in
toString
Viz method - Fix variables for aggregated values
- Fix nesting
top
expression in histogram expressions - Fix
ramp
when evaluating a numeric property usinglinear
- Fix performance regression while accessing features' properties from
viewportFeatures
- Fix regression in
viewportFeatures
including hidden polygons - Fix Content-Type for files deployed to CDN
- Add
getRenderedCentroid
method to features - Add
isPlaying
method to animations - Add
enable
/disable
methods andisEnabled
property toInteractivity
- Enable user-defined buckets in
viewportHistogram
- Add and improve examples (legends, widgets, labeling and basemaps)
- Add helpers to validate browser support (
isBrowserSupported
&unsupportedBrowserReasons
) - Add tests to check for compatibility with several MGL versions
- Fix
linear
error when evaluating a date property in a feature - Fix
transparent
color displayed as black - Fix
symbol
color when setting symbol with blendTo after initializing viz - Fix
viewportQuantiles
not getting proper buckets - Fix build to set production babelified library as default
main
in package (used atimport carto from '@carto/carto-vl'
) - Fix
viewportFeatures
error when line vertices were outside the viewport but there was an intersection - Fix
layer:updated
event removing unnecessary emissions - Fix issue sorting null key in
viewportHistogram
- Fix unwanted
Interactivity
events while using dragPan (and performance improvement) - Fix
linear
applied to cluster aggregations without explicit limits - Fix
MVT
category property returning a numeric value - Fix
Layer.addTo
for MGL v0.52
- Change examples to use Mapbox GL version 0.52
- Change signature in
viewportHistogram
from(x, weight = 1, size = 1000)
to(x, size = 20, weight = 1)
.
- Workaround buggy browser implementation of Web Worker transferables objects.
- Official support for unpatched Mapbox GL version 0.50
- Add
isNull
supporting numerical and categorical properties, deprecatingisNaN()
- Add
filter
andtransform
properties to features returned fromInteractivity
events. - Change type from
viewportFeatures
expression, adding vizProperties and variables to features as inInteractivity
- Add root-level method
blendTo
to features, allowing several viz properties changes with one call.
- Eliminate the parameter to specify a property in
globalCount()
andviewportCount()
- Move properties in
viewportFeatures
expression tofeature.properties
namespace.
- Remove
isNaN()
in favor ofisNull
- Fix an error when evaluating non-feature-dependent expressions
- Fix
viewportPercentile
(styling by it was broken) - Fix
viewport*
functions to take clustering into account - Fix wrong
expressionName
due to mangledthis.constructor.name
in the minified version - Fix a regression error related to
blendTo
when using featurereset
.
- Fix width and strokeWidth rendering in HighDPI screens
- Add
globalStandardDev
andviewportStandardDev
classification expressions - New method
ramp.getLegendData
- Add expressions
toString()
method - Add viz
toString()
method ramp
with an image list defaults tocircle
for theothers
bucket- Add
geometryType
method in Viz - Add
categoryIndex
expression. - Add
rotate()
- Add transformation chaining by using lists
- Add
getJoinedValues
method toviewportHistogram
expression. - Add support for
opacity()
with images as first parameter - Add
carto.basemaps
for easier use of CARTO styles - Support pitch and bearing (aka rotation/tilt)
- Allow
username
in auth, keeping compatibility withuser
.
- Use an optional third parameter in
ramp
expression to override the default value for "others" - Simplified
CartoError
and new specific error types - Remove
carto.Map
(used just for tests). - New build using Babel.
- Fix symbol override
- Fix
blendTo
withcircle
SVG - Fix small error with color output in
ramp
- Fix
top()
with non MapsAPI sources - Fix
isNaN
expression failing in Windows 10
- Add new
clusterCount()
expression - Support feature-dependant arrays in combination with ramp
- Add support to
.blendTo
with String API expressions - Support symbol and symbolPlacement in features
- zoom() returns the current zoom level in the typical logarithmic form, returning the same value as Mapbox GL Map.getZoom() method
- Unary and Binary operators are case insensitive.
- Add default export to allow
import carto from '@carto/carto-vl';
- Use the new Custom Layer interface with MGL (v0.48.0-carto1)
- Add
layer.remove()
API function - Make viz optional in
layer.update(source, viz?)
API function - Throw error for duplicated properties and variables
- Throw error extra arguments are passed to any expression
- Add reverse expression to arrays, besides palettes
- Improve polygon stroke rendering (+ joins)
- Optimize decodeLine and decodePolygon time (2x)
- Use minified bundle for CI testing
- Improve featureIDBuffer generation by 20%
- Trigger feature events (hover, enter, leave) when layers are updated
- Improve error message when creating buckets without an array
- ramp($category, ...) implementation is fixed when using multiple categorical properties
- Use underscore in image constants
- Use local basemaps for testing
- Fix animation example
- Fix interactivity examples
- Removed XYZ expression
- Remove imageList expression in favor of simple array []
- Benchmark tests
- Render points with triangles. Size up to 1024
- Top refactor: new limit to 16 buckets
- Improve line rendering
- Fix GeoJSON source categories
- Fix spikes in lines triangulation
- Fix GeoJSON precision computing centroid
- Enable E2E on CI with dockerized Windshaft
- Check MVT types
- Editor: select between Dataset / SQL source
- Add "carto.on" and "carto.off" methods
- Add "layer.show" and "layer.hide" methods
- Allow expressions as inputs in viewport classification expressions
- Performance optimizations
- Update feature enter example
- Modify image examples
- Improve GeoJSON source
- Improve viewport feature collision
- Remove deprecated expressions: torque and sprites
- Fix category filtering interactivity
- Add missing built in images
- Fix viewportHistogram expression