Skip to content

Conversation

@mramato
Copy link
Contributor

@mramato mramato commented Nov 13, 2014

Sometimes you need to generate DataSource information on the fly, which isn't possible without implementing a customer Property instance. This new object makes it easy to create custom properties via a callback function. For example, you could have a label that dynamically changes with the height of an Entity or range to another POI.

The only place we use this outselves right now is in GeoJsonDataSource to prevent building a bunch of string up front; which provides a large performance boost during load.

I also fixed a minor comment typo I found in several places.

@emackey and @shunter you might both find this pretty useful.

mramato and others added 4 commits November 13, 2014 14:33
Sometimes you need to generate DataSource information on the fly, which
isn't possible without implementing a customer Property instance. This
new object makes it easy to create custom properties via a callback function.
For example, you could have a label that dynamically changes with the
height of an Entity or range to another POI.

The only place we use this outselves right now is in GeoJsonDataSource
to prevent building a bunch of string up front; which provides a large
performance boost during load.

I also fixed a minor comment typo I found in several places.
@pjcozzi
Copy link
Contributor

pjcozzi commented Nov 14, 2014

Tests and Sandcastle are good.

pjcozzi added a commit that referenced this pull request Nov 14, 2014
@pjcozzi pjcozzi merged commit 22537df into master Nov 14, 2014
@pjcozzi pjcozzi deleted the callbackProperty branch November 14, 2014 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants