Skip to content

Commit

Permalink
fix: use layer id with feature id for entity id on reearth/core (#585)
Browse files Browse the repository at this point in the history
fix: use layer id with feature id for entity id
  • Loading branch information
keiya01 committed Mar 29, 2023
1 parent e8050c6 commit 24cc883
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/engines/Cesium/Feature/index.tsx
Expand Up @@ -129,8 +129,8 @@ export default function Feature({
return (
<C
{...props}
key={`${f?.id || ""}_${k}`}
id={`${f ? f.id : layer.id}_${k}`}
key={`${layer.id}_${f?.id ?? ""}_${k}`}
id={`${layer.id}_${f?.id ?? ""}_${k}`}
property={f ? f[k] : layer[k] || pickProperty(k, layer)}
geometry={f?.geometry}
feature={f}
Expand Down

0 comments on commit 24cc883

Please sign in to comment.