CesiumGS / CesiumGS/cesium

Make Entity available in callback function for CallbackProperty

Open
#3,726 5 comments 1 reaction 0 assignees View on GitHub
category - entity onramping type - enhancement
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

Suggested in the forum: https://groups.google.com/forum/?hl=en#!topic/cesium-dev/tA0lH-ZuF8Y

It would be useful if `this` or some other variable represented the calling entity to avoid duplicate functions for each entity.

Contributor guide

Open the contributing guide

Research direction

Start with the CallbackProperty implementation and the linked forum discussion to determine how the calling Entity should be exposed to callbacks without requiring duplicate functions. Done means a callback can identify its calling Entity, with tests covering the resulting behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.