Questions tagged «mapbox-gl»


3
Mapbox GL AddLayer:图标图像来自何处
许多示例总是像这样加载图标图像(例如,在这里:https : //www.mapbox.com/mapbox-gl-js/example/geojson-markers/): map.addLayer({ "id": "markers", "type": "symbol", "source": "markers", "layout": { "icon-image": "{marker-symbol}-15", "text-field": "{title}", "text-font": ["Open Sans Semibold", "Arial Unicode MS Bold"], "text-offset": [0, 0.6], "text-anchor": "top" } }); 该图标存储在哪里,如何链接到本地​​png或svg?或者我该如何将自己的资源markers投入资源?该示例没有很好的文档说明。
10 mapbox-gl 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.