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

EntityDescription doesn't render #436

Closed
jbrandli opened this issue Sep 23, 2020 · 6 comments
Closed

EntityDescription doesn't render #436

jbrandli opened this issue Sep 23, 2020 · 6 comments
Labels

Comments

@jbrandli
Copy link

jbrandli commented Sep 23, 2020

EntityDescription does not render anything. It doesn't work in the resium storybook example page, but this issue also happens for me no matter how complex or simple the JSX inside the EntityDescription component.

https://resium.darwineducation.com/examples/?path=/story/entity--description

@rot1024
Copy link
Member

rot1024 commented Sep 30, 2020

Thank you for reporting. Now I am investigating it.

@rot1024 rot1024 added the bug label Sep 30, 2020
@rot1024
Copy link
Member

rot1024 commented Sep 30, 2020

I fixed it now. The issue is due to changes in Cesium side. I'll release a new version soon.

@rot1024
Copy link
Member

rot1024 commented Sep 30, 2020

v1.13.1 has been released. Please try it and reopen this issue if the issue persists.

@rot1024 rot1024 closed this as completed Sep 30, 2020
@jbrandli
Copy link
Author

It works sometimes now, but its not consistent. Sometimes i click an entity and it shows the infobox but not the description. If click several different entities eventually it will work.

@rot1024
Copy link
Member

rot1024 commented Oct 15, 2020

I know it but EntityDescription works by overwriting Cesium's infobox function, so it is not stable. This problem seems to occur particularly when we use together EntityDescription, EntityStaticDescription, and description props of the entities.

@otaviobonder-deel
Copy link

Is this fixed?

I'm trying to use the EntityDescription but the description only renders if I click on an Entity then I click on another Entity. The second one renders fine:

image
First click only renders the infobox and the title

image
Second click renders the description

The description only renders if I click on the second entity without closing the infobox.

Here is the code:

{data.map((node) => {
        if (node.lat && node.lng) {
          return (
            <Entity
              key={node.publicKey}
              point={{
                color: Color.fromCssColorString(node.color),
                pixelSize: 8,
              }}
              position={Cartesian3.fromDegrees(node.lng, node.lat)}
            >
              <EntityDescription>
                <Typography>Test</Typography>
              </EntityDescription>
            </Entity>
          );
        }
        return null;
      })}

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

No branches or pull requests

3 participants