CartoDB / carto-vl

CARTO VL: a Javascript library to create vector-based visualizations
BSD 3-Clause "New" or "Revised" License
129 stars 26 forks source link

this._source.requiresNewMetadata is not a function on blendToViz with an MVT Layer #1438

Closed Captain-Oski closed 4 years ago

Captain-Oski commented 4 years ago

Hi all !

We are not able to blend the viz of an MVT layer with the following method :

load an MVT layer with : source.MVT(url, metadata) blend the viz of this layer

returns error :

carto-vl.min.js:6 Uncaught (in promise) TypeError:
 this._source.requiresNewMetadata is not a function
    at Layer._callee4$ (carto-vl.min.js:6)
    at tryCatch (carto-vl.min.js:6)
    at Generator.invoke [as _invoke] (carto-vl.min.js:6)
    at Generator.e.<computed> [as next] (carto-vl.min.js:6)
    at asyncGeneratorStep (carto-vl.min.js:6)
    at _next (carto-vl.min.js:6)

See a simple example on this jsfiddle: https://jsfiddle.net/captainOski/vpqhdgwj/

Thank you !

VictorVelarde commented 4 years ago

Sorry, but blendToViz is not supported on external MVT sources, just common Dataset & SQL sources