From 619a3de8ccec5bbd5fbe674daefabcb47efb0dd6 Mon Sep 17 00:00:00 2001 From: thinkinggis Date: Mon, 20 Jul 2020 11:12:49 +0800 Subject: [PATCH] fix: update docs --- docs/api/scene.en.md | 4 ++-- docs/api/scene.zh.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api/scene.en.md b/docs/api/scene.en.md index d51f54401c..9202e30952 100644 --- a/docs/api/scene.en.md +++ b/docs/api/scene.en.md @@ -317,10 +317,10 @@ scene.setPitch(pitch); 参数 : -- `extent` { array} 经纬度范围 [minlng,minlat,maxlng,maxlat] +- `extent` { array} 经纬度范围 [[minlng,minlat],[maxlng,maxlat]] ```javascript -scene.fitBounds([112, 32, 114, 35]); +scene.fitBounds([[112, 32], [114, 35]]); ``` ### getContainer diff --git a/docs/api/scene.zh.md b/docs/api/scene.zh.md index 6ba960cfdc..d3b4955e49 100644 --- a/docs/api/scene.zh.md +++ b/docs/api/scene.zh.md @@ -351,10 +351,10 @@ scene.setPitch(pitch); 参数 : -- `extent` { array} 经纬度范围 [minlng,minlat,maxlng,maxlat] +- `extent` { array} 经纬度范围 [[minlng,minlat],[maxlng,maxlat]] ```javascript -scene.fitBounds([112, 32, 114, 35]); +scene.fitBounds([[112, 32], [114, 35]]); ``` ### removeLayer