Change info Box Name

Hi, I’m new in Cesium
I’ll be pleased if someone can help me.
I loaded a GeoJSON, but when you click in it, the Info Box appears, showing a random name. something like: “ae346a73-7bdf-41b1-af14-e773e”
I would like to know how can I change this.
I just wanna show the same name for each polygon of the GeoJSON.

I hope someone can help me.
Thanks a lot!

1 Like

Hi, did you check the example on this Cesium page: https://cesium.com/docs/tutorials/creating-entities/#entity-features-in-the-viewer?
You create an entity and assign a value to the ‘name’ property, e.g.:
entity.name = ‘Box name’;
Hope this helps
C

1 Like

You can also find an example here of modifying properties on a GeoJSON after you load it: https://sandcastle.cesium.com/index.html?src=GeoJSON%20and%20TopoJSON.html

So you can go through and assign names to each one as @poulinc pointed out.