mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

text-color identity function is throwing WebGLRenderingContex error

Open bewithjonam opened this issue 10 years ago • 1 comments

mapbox-gl-js version: 0.26.0:

map.addLayer({
    'type': 'symbol',
    ....
    'paint':{
      'text-color': {
      	'type': 'identity',
      	'property': 'color'
      }
    }
  });

If I use stops(interval function) rather identity function, it works. But i want to set the color from the geojson source based on the features property.

Steps to Trigger Behavior

  1. https://jsfiddle.net/bewithjonam/cn4nczrn/2/

Expected Behavior

The text should render with color

Actual Behavior

MapboxGl throwing error and map is not rendering.

draw_symbol.js:200 Uncaught TypeError: Failed to execute 'uniform4fv' on 'WebGLRenderingContext': No function was found that matched the signature provided.(…)

bewithjonam avatar Nov 16 '16 10:11 bewithjonam

text-color doesn't support property functions yet. ⇢ #2730

jfirebaugh avatar Nov 16 '16 16:11 jfirebaugh