使用mapbox库在html/appAndroid中添加geotiff文件

使用mapbox库在html/appAndroid中添加geotiff文件,android,html,mapbox-gl-js,geotiff,Android,Html,Mapbox Gl Js,Geotiff,我有很多georaster文件“.geotiff”,我想用MapBox库(,)将它们添加到我的html页面中 到目前为止,我使用以下代码添加了mbtiles文件: map.addSource('file', { 'type': 'vector', 'tiles': ['https://tileserver/file/{z}/{x}/{y}.pbf'], 'minzoom': 1, 'maxzoom': 20 }); map.addLayer({'id': 'file',

我有很多georaster文件“.geotiff”,我想用MapBox库(,)将它们添加到我的html页面中

到目前为止,我使用以下代码添加了mbtiles文件:

map.addSource('file', {
  'type': 'vector',
  'tiles': ['https://tileserver/file/{z}/{x}/{y}.pbf'],
  'minzoom': 1,
  'maxzoom': 20
  });
map.addLayer({'id': 'file',
  'type': 'fill',
  'source': 'file',
  'source-layer': 'file',
  'filter': ["==", 'value', livello.toString()],
  'paint': {
  'fill-color': ['get', 'color'],
  'fill-opacity':  ['get', 'opacity'] ? ['get', 'opacity'] : 0.4
  },
  'geometry': ['get', 'geometry']
  }
  );
我在网上找到的,但我不知道如何使用它。 我能请求帮助吗? 多谢各位