Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation exposes internal expression #1382

Open
dgaubert opened this issue Jul 11, 2019 · 0 comments
Open

Documentation exposes internal expression #1382

dgaubert opened this issue Jul 11, 2019 · 0 comments
Labels
type: doc Related to any type of docs: internal, external, examples

Comments

@dgaubert
Copy link
Contributor

Category Index is an internal expression but is documented as a public function but it's not.

const viz = new carto.Viz(`
      @duration: 30
      @animation: animation(linear($year, 1662, 1855), @duration, fade(0.1, ${Number.MAX_SAFE_INTEGER}))
      strokeWidth: 0
      color: ramp(categoryIndex($nationality), PRISM)
    `);

=>

Uncaught CartoParsingError: [Error] Invalid function name 'categoryIndex'.
    at parseFunctionCall (https://libs.cartocdn.com/carto-vl/v1.2/carto-vl.min.js:6:399501)
    at parseNode (https://libs.cartocdn.com/carto-vl/v1.2/carto-vl.min.js:6:399561)
    at https://libs.cartocdn.com/carto-vl/v1.2/carto-vl.min.js:6:399441
    at Array.map (<anonymous>)
    at parseFunctionCall (https://libs.cartocdn.com/carto-vl/v1.2/carto-vl.min.js:6:399418)
    at parseNode (https://libs.cartocdn.com/carto-vl/v1.2/carto-vl.min.js:6:399561)
    at parseVizNamedExpr (https://libs.cartocdn.com/carto-vl/v1.2/carto-vl.min.js:6:399140)
    at https://libs.cartocdn.com/carto-vl/v1.2/carto-vl.min.js:6:409517
    at Array.map (<anonymous>)
    at parseVizDefinition (https://libs.cartocdn.com/carto-vl/v1.2/carto-vl.min.js:6:409494)
@dgaubert dgaubert added the type: doc Related to any type of docs: internal, external, examples label Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: doc Related to any type of docs: internal, external, examples
Projects
None yet
Development

No branches or pull requests

1 participant