Skip to content

Commit

Permalink
refactor: v1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
plainheart committed Nov 20, 2022
1 parent 49d05ac commit d5a1bc4
Show file tree
Hide file tree
Showing 38 changed files with 6,384 additions and 1,476 deletions.
5 changes: 5 additions & 0 deletions .babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": [
"@babel/env"
]
}
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
registry-url: https://registry.npmjs.org/

- name: Cache node modules
uses: actions/cache@v2
uses: actions/cache@v3
env:
cache-name: build-cache-node-modules
with:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
logs
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020-2021 Zhongxiang.Wang
Copyright (c) 2020-2022 Zhongxiang Wang

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,19 @@

[Online example on CodePen](https://codepen.io/plainheart/pen/VweLGbR)

This is a Google Map extension for [ECharts](https://echarts.apache.org/en/index.html) which is used to display visualizations such as [Scatter](https://echarts.apache.org/en/option.html#series-scatter), [Lines](https://echarts.apache.org/en/option.html#series-lines), [Heatmap](https://echarts.apache.org/en/option.html#series-heatmap).
This is a Google Map extension for [ECharts](https://echarts.apache.org/en/index.html) which is used to display visualizations such as [Scatter](https://echarts.apache.org/en/option.html#series-scatter), [Lines](https://echarts.apache.org/en/option.html#series-lines), [Heatmap](https://echarts.apache.org/en/option.html#series-heatmap), and [Pie](https://echarts.apache.org/en/option.html#series-pie).

### Examples

Refer to [examples/index.html](https://github.com/plainheart/echarts-extension-gmap/blob/master/examples/index.html)
[Scatter](https://github.com/plainheart/echarts-extension-gmap/tree/master/examples/scatter.html)

![Preview](https://user-images.githubusercontent.com/26999792/140644753-6487d3b7-7ffb-4ee5-a0dd-f760efbef5c8.png)
[Lines](https://github.com/plainheart/echarts-extension-gmap/tree/master/examples/lines.html)

[Heatmap](https://github.com/plainheart/echarts-extension-gmap/tree/master/examples/heatmap.html)

[Pie](https://github.com/plainheart/echarts-extension-gmap/tree/master/examples/pie.html)

![Preview](https://user-images.githubusercontent.com/26999792/202892350-5a7df14e-18ea-4f98-9a62-f55d29ad9a49.png)

### Installation

Expand Down Expand Up @@ -84,7 +90,7 @@ option = {
echartsLayerZIndex: 2019,
// whether to enable gesture handling. `true` by default.
// since v1.4.0
roam: false
roam: true

// More initial options...
},
Expand Down Expand Up @@ -114,6 +120,6 @@ var gmap = chart
var marker = new google.maps.Marker({ position: gmap.getCenter() });
marker.setMap(gmap);
// Add TrafficLayer to map
var trafficLayer = new google.maps.TrafficLayer();
trafficLayer.setMap(gmap);
// var trafficLayer = new google.maps.TrafficLayer();
// trafficLayer.setMap(gmap);
```
14 changes: 10 additions & 4 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@

### 示例

参见 [examples/index_zh_CN.html](https://github.com/plainheart/echarts-extension-gmap/blob/master/examples/index_zh_CN.html)
[Scatter 散点图](https://github.com/plainheart/echarts-extension-gmap/tree/master/examples/scatter_zh_CN.html)

![示例](https://user-images.githubusercontent.com/26999792/140644753-6487d3b7-7ffb-4ee5-a0dd-f760efbef5c8.png)
[Lines 线图](https://github.com/plainheart/echarts-extension-gmap/tree/master/examples/lines_zh_CN.html)

[Heatmap 热力图](https://github.com/plainheart/echarts-extension-gmap/tree/master/examples/heatmap_zh_CN.html)

[Pie 饼图](https://github.com/plainheart/echarts-extension-gmap/tree/master/examples/pie_zh_CN.html)

![示例](https://user-images.githubusercontent.com/26999792/202892350-5a7df14e-18ea-4f98-9a62-f55d29ad9a49.png)

### 安装

Expand Down Expand Up @@ -109,6 +115,6 @@ var gmap = chart
var marker = new google.maps.Marker({ position: gmap.getCenter() });
marker.setMap(gmap);
// 添加交通图层
var trafficLayer = new google.maps.TrafficLayer();
trafficLayer.setMap(gmap);
// var trafficLayer = new google.maps.TrafficLayer();
// trafficLayer.setMap(gmap);
```
285 changes: 0 additions & 285 deletions build/build.js

This file was deleted.

Loading

0 comments on commit d5a1bc4

Please sign in to comment.