diff --git a/docs/api/layer/layer.en.md b/docs/api/layer/layer.en.md index 21ccab7477..cf80d00331 100644 --- a/docs/api/layer/layer.en.md +++ b/docs/api/layer/layer.en.md @@ -40,7 +40,7 @@ new Layer(option) ## 鼠标事件 -beta版当前不支持,正式版会支持 +⚠️ beta版当前不支持,正式版会支持 ```javascript layer.on('click', (ev)=>{}); // 鼠标左键点击图层事件 @@ -319,4 +319,4 @@ layer.hide(); ```javascript layer.fitBounds() -``` \ No newline at end of file +``` diff --git a/docs/api/layer/layer.zh.md b/docs/api/layer/layer.zh.md index dfefab69a6..05f63ab333 100644 --- a/docs/api/layer/layer.zh.md +++ b/docs/api/layer/layer.zh.md @@ -40,7 +40,7 @@ new Layer(option) ## 鼠标事件 -beta版当前不支持,正式版会支持 +⚠️ beta版当前不支持,正式版会支持 ```javascript layer.on('click', (ev)=>{}); // 鼠标左键点击图层事件 @@ -319,4 +319,4 @@ layer.hide(); ```javascript layer.fitBounds() -``` \ No newline at end of file +``` diff --git a/docs/tutorial/map/mapbox.zh.md b/docs/tutorial/map/mapbox.zh.md index 2e3788536c..2e8908adaf 100644 --- a/docs/tutorial/map/mapbox.zh.md +++ b/docs/tutorial/map/mapbox.zh.md @@ -39,18 +39,21 @@ order: 0 ### 初始化 L7 Scene +``` javascript + ``` javascript const scene = new L7.Scene({ id: 'map', - style: 'dark', // 样式URL - center: [120.19382669582967, 30.258134], - pitch: 0, - zoom: 12, - type:'mapbox', - token: 'mapbox token' - + map: new L7.Mapbox({ + style: 'dark', // 样式URL + center: [120.19382669582967, 30.258134], + pitch: 0, + zoom: 12, + token: 'mapbox token', + }), }); + ``` 这样我们就完成了通过L7 实例化mapbox地图 @@ -116,12 +119,13 @@ fetch('https://gw.alipayobjects.com/os/rmsportal/oVTMqfzuuRFKiDwhPSFL.json')