Я ищу рендеринг экструзии 3D-зданий в приложении React-Native с использованием github / mapbox / react-native-mapbox-gl
Я создал собственную карту в MapBox Studio, добавил следующую строку в style.json и загрузил карту в Mapbox Studio.
{
"id": "buildings",
"type": "fill-extrusion",
"source": "composite",
"source-layer": "building",
"minzoom": 15,
"filter": [
"all",
[
"==",
"extrude",
"true"
],
[
">",
"height",
1
]
],
"paint": {
"fill-extrusion-color": "hsl(206, 7%, 61%)",
"fill-extrusion-height": {
"type": "identity",
"property": "height"
},
"fill-extrusion-base": {
"type": "identity",
"property": "min_height"
},
"fill-extrusion-opacity": 1,
"fill-extrusion-translate-anchor": "viewport"
}
}
В mapbox-studio здания отображаются, как и ожидалось, но когда я возвращаюсь в свое приложение React-Native, карта отображается, но без зданий.
Вы, ребята, знаете, как отображать здания в 3D с помощью response-native-mapbox-gl sdk?
Спасибо.