Skip to content

Commit

Permalink
marker support map chart
Browse files Browse the repository at this point in the history
  • Loading branch information
pissang committed Mar 16, 2016
1 parent e336b7e commit 6cb9195
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/component/marker/MarkLineView.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ define(function (require) {
coordDimsInfos = zrUtil.map(coordSys && coordSys.dimensions, function (coordDim) {
var info = seriesModel.getData().getDimensionInfo(
seriesModel.coordDimToDataDim(coordDim)[0]
);
) || {}; // In map series data don't have lng and lat dimension. Fallback to same with coordSys
info.name = coordDim;
return info;
});
Expand Down
2 changes: 1 addition & 1 deletion src/component/marker/MarkPointView.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ define(function (require) {
coordDimsInfos = zrUtil.map(coordSys && coordSys.dimensions, function (coordDim) {
var info = seriesModel.getData().getDimensionInfo(
seriesModel.coordDimToDataDim(coordDim)[0]
);
) || {}; // In map series data don't have lng and lat dimension. Fallback to same with coordSys
info.name = coordDim;
return info;
});
Expand Down
2 changes: 1 addition & 1 deletion src/component/marker/markerHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ define(function (require) {
*/
var dataFilter = function (coordSys, item) {
// Alwalys return true if there is no coordSys
return (coordSys && item.coord && (item.x == null || item.y == null))
return (coordSys && coordSys.containData && item.coord && (item.x == null || item.y == null))
? coordSys.containData(item.coord) : true;
};

Expand Down

0 comments on commit 6cb9195

Please sign in to comment.