0
我正在使用mapbox,最近我想創建一個web地圖。我將一個形狀上傳到mapset tilseset雲,但是當我嘗試將它添加到地圖中時,它不顯示。這是我使用的代碼funtion:將地圖框中的Tileset添加到我的地圖中
map.on('load', function() {
map.addLayer({
'id' : 'Resguardos',
'type' : 'fill',
"source" : {
'type' : 'vector',
'url' : 'mapbox://fabiofz1990.9lhgml6c',
},
'layout' : {},
'paint' : {
'fill-color' : '#0044b2',
'fill-opacity' : 1
}
});
});
謝謝
有你添加的API密鑰本 –