Skip to content

Commit

Permalink
[release] v1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
plainheart committed Sep 7, 2021
1 parent 5989e13 commit 9bf81b4
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 426 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,19 @@ option = {
// See https://developers.google.com/maps/documentation/javascript/reference/map#MapOptions for details
// initial map center, accepts an array like [lng, lat] or an object like { lng, lat }
center: [108.39, 39.9],
// center: { lng: 108.39, lat: 39.9 },
// initial map zoom
zoom: 4,
// whether echarts layer should be rendered when the map is moving. Default is true.

// whether echarts layer should be rendered when the map is moving. `true` by default.
// if false, it will only be re-rendered after the map `moveend`.
// It's better to set this option to false if data is large.
renderOnMoving: true,
// the zIndex of echarts layer for Google Map, default value is 2000.
echartsLayerZIndex: 2019
// the zIndex of echarts layer for Google Map. `2000` by default.
echartsLayerZIndex: 2019,
// whether to enable gesture handling. `true` by default.
// since v1.4.0
roam: false

// More initial options...
},
Expand Down
9 changes: 7 additions & 2 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,13 @@ option = {
// 其他地图初始化参数...
// https://developers.google.cn/maps/documentation/javascript/reference/map#MapOptions

// 移动过程中实时渲染 默认为true 如数据量较大 建议置为false
renderOnMoving: true
// 移动过程中实时渲染。默认为 true。如数据量较大,建议置为 false。
renderOnMoving: true,
// 谷歌地图 ECharts 图层的 zIndex。默认为 2000。
echartsLayerZIndex: 2019,
// 是否启用手势事件处理,如拖拽等。默认为 true。
// 此配置项从 v1.4.0 起支持
roam: true
},
series: [
{
Expand Down
Loading

0 comments on commit 9bf81b4

Please sign in to comment.