LogoLogo
Sign upHelp CenterContactSocial
Home
Home
  • Overview
  • REST API
    • Getting started
    • Navigating maps and workspaces
    • Uploading files and URLs
    • Styling layers
    • Refreshing live data layers
    • Working with elements
    • Listening to updates using webhooks
    • API Reference
      • Authentication
      • Maps
      • Layers
      • Elements
      • Users
      • Comments
      • Embed Tokens
      • Sources
      • Projects
  • JS SDK
    • Getting started
    • General concepts
    • Controlling maps
    • Working with selection
    • Reading entities
    • Drawing elements
    • Working with layers
    • Layer filters
    • Building custom charts
    • Map interactions and viewport
    • Hiding and showing
    • Integrating with React
    • Sample application
    • Examples
    • API Reference
  • Felt Style Language
    • Getting started
    • Style definition blocks
      • The config block
      • The paint block
      • The label block
      • The legend block
      • The popup block
      • The attributes block
      • The filters block
    • Types of visualizations
      • Simple visualizations
      • Categorical visualizations
      • Numeric visualizations (color & size)
      • Heatmaps
      • Hillshade
    • Zoom-based Styling
      • Interpolators
    • Legends
    • Errors
    • Examples
Powered by GitBook
On this page
  • Unexpected value or type
  • Categorical visualization not working

Was this helpful?

Export as PDF
  1. Felt Style Language

Errors

Unexpected value or type

Problem: One of the values set in the style has an unsupported value or an invalid type.

Solution: Change the value to be valid.

Error messages:

  • Attribute 'displayName' on a legend item of type simple must be a string.

  • Attribute attribute_name is not a number.

  • Attribute attribute_name is not a string.

  • Attribute 'lineCap’ is not a supported value. Supported values are butt, round, square.

  • Attribute 'lineJoin’ is not a supported value. Supported values are bevel, round, miter.

  • Attribute ‘dashArray’ has to be a two-numbers array.

  • Attribute 'offset' must be either an array of numbers or a number.

  • Attribute 'placement' contains a not supported value. Supported values are N, NE, E, SE, S, SW, W, NW, Center.

  • Attribute 'placement' contains a not supported value. Supported values are Above, Center, Below.

  • All values in 'labelAttribute' must be a string.

  • Visualization 'type' definition must be one of simple, categorical.

  • Attribute 'showOther' must be one of above, below.

Categorical visualization not working

Problem: The style defines a categorical visualization, but the maps are not showing the layer

Error messages:

  • Categories required. A categories array must be defined in the config block when defining a categorical visualization. Read more about categorical visualizations here.

  • Not enough or too many attribute_name values. When defining a categorical visualization, all style and label properties must be an array with either a single value that will apply to all categories or an array with as many values as categories defined in the config block. Read more about categorical visualizations here.

PreviousLegendsNextExamples

Last updated 11 months ago

Was this helpful?