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

Clustered labels do not reappear after clustering #6897

Closed
ollazarev opened this issue Aug 8, 2018 · 2 comments
Closed

Clustered labels do not reappear after clustering #6897

ollazarev opened this issue Aug 8, 2018 · 2 comments

Comments

@ollazarev
Copy link

ollazarev commented Aug 8, 2018

Look, please, at this example: https://codepen.io/ollazarev/pen/rrQaee

After clustering, only the points appear again, but the labels after the clustering disappear forever.

After camera zoom, in addition to the points, the following cities should appear: Philadelphia, Canada, New York, Toronto.

A piece of code from this example:

let dataSource = new Cesium.CustomDataSource('dataSource');
dataSource.clustering = new Cesium.EntityCluster({
  pixelRange: 80,
  enabled: true,
  clusterBillboards: true,
  clusterLabels: true,
  clusterPoints: true,
});
let entity = new Cesium.Entity({
  position : Cesium.Cartesian3.fromDegrees(-75.1641667, 39.9522222),
  label: {
    text: 'Philadelphia',
    pixelOffset: new Cesium.Cartesian2(7, 0),
    horizontalOrigin: Cesium.HorizontalOrigin.LEFT
  },
  point: {
    pixelSize: 5,
  }
});
dataSource.entities.add(entity);
viewer.dataSources.add(dataSource);
@hpinkos
Copy link
Contributor

hpinkos commented Aug 8, 2018

Thanks @ollazarev, I was able to reproduce the bug

@hpinkos
Copy link
Contributor

hpinkos commented Aug 8, 2018

Actually @ollazarev, it looks like this is a duplicate issue of #6087. I'm going to close this one, but I'll add a link in that issue to this one so we can notify you when the bug is fixed. Thanks again for including the code example! That made this really easy to reproduce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants