flutter-mapbox-gl / maps

A Mapbox GL flutter package for creating custom maps
Other
1.04k stars 503 forks source link

[JNI]: Error setting property: fill-pattern expected a literal expression #1206

Closed barqui closed 1 year ago

barqui commented 1 year ago

fill-pattern not work on the android with error

[JNI]: Error setting property: fill-pattern expected a literal expression

but it works well on iOS.

addLayer(
  'fillSource',
  'fillLayer',
  const FillLayerProperties(
    fillColor: '#EEEEEE', 
    fillPattern: 'imageTile',
);

I try to change it to use literal like

[
  Expressions.literal,
  '#asset path'
],

or

[
  Expressions.literal,
  'imageTile'
],

but shown same error.

I test at Galaxy S9 with android 10, mapbox_gl 0.16.0

barqui commented 1 year ago

['image', 'imageTile'] is working on both side.