Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brush area do not move while roam. #11754

Closed
100pah opened this issue Dec 1, 2019 · 2 comments · Fixed by #11998
Closed

Brush area do not move while roam. #11754

100pah opened this issue Dec 1, 2019 · 2 comments · Fixed by #11998
Labels
bug en This issue is in English

Comments

@100pah
Copy link
Member

100pah commented Dec 1, 2019

Version

4.5.0

Steps to reproduce

(1) click "保持选择"
(2) brush an area
(3) drag roam

var testGeoJson1 = {
    'type': 'FeatureCollection',
    'features': [
        {
            'geometry': {
                'type': 'Polygon',
                'coordinates': [
                    [
                        [
                            2000,
                            3000
                        ],
                        [
                            5000,
                            3000
                        ],
                        [
                            5000,
                            8000
                        ],
                        [
                            2000,
                            8000
                        ]
                    ]
                ]
            },
            'properties': {
                'name': 'Some Area',
                'childNum': 1
            }
        }
    ]
};
echarts.registerMap('test1', testGeoJson1);

var data = [];
var step = 500;
var lngStart = 1000;
var latStart = 2000;
for (var i = 0; i < 10; i  ) {
    for (var j = 0; j < 10; j  ) {
        data.push({
            value: [lngStart   j * step, latStart   i * step],
            symbolSize: 5   j * 5
        });
    }
}

var option = {
    geo: [{
        map: 'test1',
        zoom: 4,
        roam: true
    }],
    brush: {
        geoIndex: 0
    },
    series: [{
        type: 'scatter',
        coordinateSystem: 'geo',
        symbol: 'roundRect',
        symbolSize: 30,
        data: data
    // }, {                      // uncomment it to make brush area move
    //     type: 'bar',     // uncomment it to make brush area move
    //     data: []           // uncomment it to make brush area move
    }],
    // xAxis: {},            // uncomment it to make brush area move
    // yAxis: {},            // uncomment it to make brush area move
};

Also check main2 of test/drag-out.html.

What is expected?

The brush area should move follow the roam

What is actually happening?

not move.
But uncomment some code above, that will become correct.

@echarts-bot
Copy link

echarts-bot bot commented Dec 1, 2019

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.

If you are interested in the project, you may also subscribe our mail list.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added bug en This issue is in English pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Dec 1, 2019
@100pah 100pah added this to the 4.7.0 milestone Dec 1, 2019
@pissang pissang changed the title Brush area do not more while roam. Brush area do not move while roam. Dec 2, 2019
@pissang pissang removed pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Dec 2, 2019
@grishnyakov
Copy link

Similar problem
#11670

100pah added a commit that referenced this issue Jan 8, 2020
… coordinate system when using updateTransform. fix #11754.
100pah added a commit that referenced this issue Jan 9, 2020
… coordinate system when using updateTransform. fix #11754.
@Ovilia Ovilia removed this from the 4.7.0 milestone Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants