Skip to content

Commit

Permalink
hotfix flowGL on geo bug. release 2.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
pissang committed Jul 3, 2021
1 parent 54e3d8e commit 7c8d9a3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/echarts-gl.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/echarts-gl.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "echarts-gl",
"description": "Extension pack of ECharts providing 3D plots and globe visualization",
"version": "2.0.5",
"version": "2.0.6",
"maintainers": [
{
"name": "Yi Shen"
Expand Down
5 changes: 4 additions & 1 deletion src/chart/flowGL/FlowGLSeries.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ export default echarts.SeriesModel.extend({
visualStyleAccessPath: 'itemStyle',

getInitialData: function (option, ecModel) {
var coordSysDimensions = echarts.getCoordinateSystemDimensions(this.get('coordinateSystem')) || ['x', 'y'];
var coordType = this.get('coordinateSystem');
// TODO hotfix for the bug in echarts that get coord dimensions is undefined.
var coordSysDimensions = coordType === 'geo' ? ['lng', 'lat']
: (echarts.getCoordinateSystemDimensions(coordType) || ['x', 'y']);
if (process.env.NODE_ENV !== 'production') {
if (coordSysDimensions.length > 2) {
throw new Error('flowGL can only be used on 2d coordinate systems.');
Expand Down

0 comments on commit 7c8d9a3

Please sign in to comment.